[pallet-revive] eth-prc fix geth diff (#6608)
* Add a bunch of differential tests to ensure that responses from eth-rpc matches the one from `geth` - These [tests](https://github.com/paritytech/polkadot-sdk/blob/pg/fix-geth-diff/substrate/frame/revive/rpc/examples/js/src/geth-diff.test.ts) are not run in CI for now but can be run locally with ```bash cd revive/rpc/examples/js bun test ``` * EVM RPC server will not fail gas_estimation if no gas is specified, I updated pallet-revive to add an extra `skip_transfer` boolean check to replicate this behavior in our pallet * `eth_transact` and `bare_eth_transact` api have been updated to use `GenericTransaction` directly as this is what is used by `eth_estimateGas` and `eth_call` ## TODO - [ ] Add tests the new `skip_transfer` flag --------- Co-authored-by:GitHub Action <action@github.com> Co-authored-by:
Alexander Theißen <alex.theissen@me.com>
Showing
- Cargo.lock 1 addition, 0 deletionsCargo.lock
- cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs 8 additions, 22 deletions...s/parachains/runtimes/assets/asset-hub-westend/src/lib.rs
- prdoc/pr_6608.prdoc 14 additions, 0 deletionsprdoc/pr_6608.prdoc
- substrate/bin/node/runtime/src/lib.rs 5 additions, 20 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/revive/Cargo.toml 1 addition, 0 deletionssubstrate/frame/revive/Cargo.toml
- substrate/frame/revive/mock-network/src/tests.rs 2 additions, 2 deletionssubstrate/frame/revive/mock-network/src/tests.rs
- substrate/frame/revive/rpc/Cargo.toml 1 addition, 1 deletionsubstrate/frame/revive/rpc/Cargo.toml
- substrate/frame/revive/rpc/examples/js/abi/errorTester.ts 106 additions, 0 deletionssubstrate/frame/revive/rpc/examples/js/abi/errorTester.ts
- substrate/frame/revive/rpc/examples/js/abi/event.json 0 additions, 34 deletionssubstrate/frame/revive/rpc/examples/js/abi/event.json
- substrate/frame/revive/rpc/examples/js/abi/event.ts 34 additions, 0 deletionssubstrate/frame/revive/rpc/examples/js/abi/event.ts
- substrate/frame/revive/rpc/examples/js/abi/piggyBank.json 0 additions, 65 deletionssubstrate/frame/revive/rpc/examples/js/abi/piggyBank.json
- substrate/frame/revive/rpc/examples/js/abi/piggyBank.ts 1 addition, 18 deletionssubstrate/frame/revive/rpc/examples/js/abi/piggyBank.ts
- substrate/frame/revive/rpc/examples/js/abi/revert.json 0 additions, 14 deletionssubstrate/frame/revive/rpc/examples/js/abi/revert.json
- substrate/frame/revive/rpc/examples/js/bun.lockb 0 additions, 0 deletionssubstrate/frame/revive/rpc/examples/js/bun.lockb
- substrate/frame/revive/rpc/examples/js/contracts/.solhint.json 3 additions, 0 deletions...rate/frame/revive/rpc/examples/js/contracts/.solhint.json
- substrate/frame/revive/rpc/examples/js/contracts/ErrorTester.sol 51 additions, 0 deletions...te/frame/revive/rpc/examples/js/contracts/ErrorTester.sol
- substrate/frame/revive/rpc/examples/js/contracts/PiggyBank.sol 4 additions, 4 deletions...rate/frame/revive/rpc/examples/js/contracts/PiggyBank.sol
- substrate/frame/revive/rpc/examples/js/package.json 21 additions, 20 deletionssubstrate/frame/revive/rpc/examples/js/package.json
- substrate/frame/revive/rpc/examples/js/pvm/errorTester.polkavm 0 additions, 0 deletions...rate/frame/revive/rpc/examples/js/pvm/errorTester.polkavm
- substrate/frame/revive/rpc/examples/js/src/balance.ts 8 additions, 0 deletionssubstrate/frame/revive/rpc/examples/js/src/balance.ts
Please register or sign in to comment