Hot answers tagged

2

Solidity variable values can only be set from the contract. So you will definitely need some sort of setter functionality for the variable to be set to different values. Furthermore there is no functionality to "watch" a variable's value or something similar. You simply have to do the monitoring yourself. So when you implement functionality to set the ...


2

Note when applying this for structs, the pattern is to nest the structs in a similar way. So: keccak256("Deposit(address,bytes32,uint256,(bytes32, bytes32))") is the signature of the event: struct MoreData { bytes32 id1; bytes32 id2; } event Deposit( address indexed _from, bytes32 indexed _id, uint _value, ...


Only top voted, non community-wiki answers of a minimum length are eligible