this.call(bytes4(keccak256("setGBA(uint32)")), 12);

How to call function by string name? I can't modify store in function. How to do this?

  • The call itself looks correct. Have you tried increasing gaslimit? How do you know it fails on SSTORE? – medvedev1088 Feb 9 '18 at 11:39
  • @medvedev1088 I tried to increase but no results rinkeby.etherscan.io/… Look at this transaction exception on SSTORE – Vladimir Kovalchuk Feb 9 '18 at 12:13
  • 1
    The required gas for sstore is 5000 but only 1020 remains. – medvedev1088 Feb 9 '18 at 12:53
  • 1
    When you send the transaction (not message call) you can set gas limit. In the previous tx it’s 26558 which is not enough. – medvedev1088 Feb 9 '18 at 13:14
  • 1
    On the Run tab there is a field called Gas limit – medvedev1088 Feb 9 '18 at 13:27

You need to increase the gas limit of the transaction. In Remix, you can set the gas limit on the Run tab.

| improve this answer | |

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.