2

Is it possible to inspect the transaction object 'msg' in the truffle debugger? When I step through the below and type :msg.value I get ReferenceError: msg is not defined

Code:

    string public name;

    function changeName(string newName) public payable {
       require(msg.value >= 1 ether);
       name = newName;
    }
1
  • without the code is a bit complicated to understand whats going on. But apparently the your variable is undefined – mirg Apr 21 '18 at 4:38
2

This is currently unsupported - see issue https://github.com/trufflesuite/truffle-debugger/issues/32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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