Skip to content

Private transaction - Trying to add function or variables to the SimpleStorage.sol contract, but does not work #1620

@Universe-art

Description

@Universe-art

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

[backtrace]

When submitting logs: please submit them as text and not screenshots.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions