Private transaction - Trying to add function or variables to the SimpleStorage.sol contract, but does not work #1625
Unanswered
Universe-art
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
System information
Geth version:
geth version
OS & Version: OSX
Commit hash : (if
develop
)Expected behaviour
I run the private blockchain on my laptop. I want to implement a custom smart contract to test a private transaction.
I start from the example in the quickstart : SimpleStorage.sol and the script private_tx.js.
This contract has 2 functions : set and get, respectively to set a value and get it.
The script enables to create a private transaction between member 1 and member 3.
I add a function or a variable to the contract.
I then compile the contract, take the bin and abi, put them inside the SimpleStorage.json.
I run again the script private_tx.js
I am waiting that the script runs and produces the same result than before (member 1 and member 3 can see the value set and member 2 see undefined.
Actual behaviour
The 3 members see the value undefined
Steps to reproduce the behaviour
Backtrace
When submitting logs: please submit them as text and not screenshots.
Beta Was this translation helpful? Give feedback.
All reactions