0

Is there anything solidity in line that would let a contract with ETH assigned to, to pay gas.

Say I want something simple.

contract whatever {
uint256 one;
uint256 two;

function execute() public { one = one + two; //execute contract side } }

Does something like that exist? I checked the solidity docs, couldn't find anything to my knowledge.

eth
  • 85,679
  • 53
  • 285
  • 406

1 Answers1

0

It seems the only way to have "gasless" txs go through contract side is through the implementation of OpenGSN - https://docs.opengsn.org/

Some of their examples are totally broken and I will update the answer with more relevant information on how to easily do it in a code snippet.