Suppose there is a mapping mapping (address => bool) submitted. If want to save something (like submitted[address] = true) in this mapping from test script while testing how can I do it??

1 Answer 1

    function setUserSubmitStatus(address _user,bool _status) public onlyOwner{
        submitted[_user] = _status;
  • Create a function to set it in solidity and call to that function.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.