Closed pertsev closed 5 years ago
@nventuro could you confirm that the relayer binary was updated after the Review call data estimation issue #33 ?
It happens because RelayHub
limits amount of gas spent before calling recipient.
GasOverhead currently is 48204
. Call data and RelayHub checks has to fit into 48204
limit.
This is unfortunate limitation. I hope it will be addressed soon in RelayHub.
Fixed at #37.
Description
Relayer sends a transaction but relayHub reverts it with the reason
Not enough gasleft()
. This project was made to reproduce the issue. It does not use a real relayer, just theGSNDevProvider
.Notice that the withdrawViaRelayer test fails, inrease works fine, though.
Expected behavior
The tx should be relayed because
canRelay
allows that.Actual behavior
Steps to reproduce the behavior
git clone git@github.com:peppersec/gsn-demo.git
git checkout 6c2048b7a76fe8c889ba3740998157053ed6895c
cd gsn-demo
npm i
npx truffle compile
npx truffle test
Versions
Truffle v5.0.37 (core: 5.0.37) Solidity v0.5.8 (solc-js) Node v11.15.0 Web3.js v1.2.1 @openzeppelin/contracts-ethereum-package 2.2.3 @openzeppelin/gsn-helpers 0.2.0 @openzeppelin/gsn-provider 0.1.7