You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
contract Storage {
uint256 number;
/**
* @dev Store value in variable
* @param num value to store
*/
function store(uint256 num) public {
number = num;
}
/**
* @dev Return value
* @return value of 'number'
*/
function retrieve() public view returns (uint256){
return number;
}
}
When calling the above contract's store(uint256) method with cast call $ADDR "store(uint256)" "100" the calls returns 0x and doesn`t appear to update the underlying state.
Calls to retrieve with cast call $ADDR "retrieve()" always returns: 0x0000000000000000000000000000000000000000000000000000000000000000
The text was updated successfully, but these errors were encountered:
When calling the above contract's
store(uint256)
method withcast call $ADDR "store(uint256)" "100"
the calls returns0x
and doesn`t appear to update the underlying state.Calls to
retrieve
withcast call $ADDR "retrieve()"
always returns:0x0000000000000000000000000000000000000000000000000000000000000000
The text was updated successfully, but these errors were encountered: