Closed palango closed 10 months ago
Test failures: |
---|
TestTransferERC20: e2e_test
|
TestRPCDynamicTxGasPriceWithoutStateForAlternativeCurrencyBeforeGingerbread: e2e_test
|
TestRPCDynamicTxGasPriceWithoutStateForAlternativeCurrencyAfterGingerbread: e2e_test
|
TestEthersJSCompatibilityDisableAfterGingerbread: e2e_test
|
TestEthersJSCompatibilityDisableBeforeGingerbread: e2e_test
|
This test report was produced by the test-summary action. Made with ❤️ in Cambridge. |
Closing, as this will be Cel2 only.
Description
Prototype for gas currency payments without
credit
/debit
functions in the token contract.Inside the EVM state transition code it is possible to send transactions from arbitrary accounts. @karlb came up with the idea to use this to use the existing
approve
/transferFrom
functions to remove the need ofcredit
/debit
functions in fee currency token contracts.During the implementation it became clear that it is possible to just call
transfer
, which reduces the overhead further.There's two remaining differences from the current implementation:
0xce106a5
instead of letting the debited fees vanish.⚠️ The code is a prototype, the gas limit handling is just wrong and error handling needs to be improved.