-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[pallet-revive] eth-prc fix geth diff #6608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
06e289c
squashed
pgherveou 3529fbb
Add geth-diff-tests
pgherveou 87fd63f
fixup cargo.toml
pgherveou aa1f1be
gen fixes
pgherveou e9823a0
fix generator
pgherveou 61619bd
type generator update fixes
pgherveou 716f40a
wip
pgherveou 3a10a37
fixes
pgherveou f8fc0fc
rm codegen files
pgherveou 8210606
rm prdoc
pgherveou 45f8b7b
fix benchmarking tests
pgherveou 0733fb6
fix tests & doc
pgherveou 0941800
rename unchecked to skip_transfer
pgherveou d4460d6
clippy
pgherveou c164368
lint
pgherveou 434b2d1
use relative path for polkadot-sdk
pgherveou 868ae85
rm console.log
pgherveou 0e1c3dc
Update from pgherveou running command 'prdoc --audience runtime_dev -…
actions-user 4206a1f
Merge branch 'master' into pg/fix-geth-diff
pgherveou edd099c
fix tests
pgherveou 65caf0b
Update substrate/frame/revive/rpc/src/client.rs
pgherveou 326f52b
update comment
pgherveou 037c58e
fix from address default
pgherveou 31ed649
pr review
pgherveou 76e3fda
PR review
pgherveou ec41a82
rm json files
pgherveou 80dceac
rm types
pgherveou 1117b0d
Add extra test
pgherveou 6e7cd93
fix CI error
pgherveou dacbfa2
Merge branch 'master' into pg/fix-geth-diff
athei File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| title: '[pallet-revive] eth-prc fix geth diff' | ||
| doc: | ||
| - audience: Runtime Dev | ||
| description: |- | ||
| * Add a bunch of differential tests to ensure that responses from eth-rpc matches the one from `geth` | ||
| * 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` | ||
| crates: | ||
| - name: pallet-revive-eth-rpc | ||
| bump: minor | ||
| - name: pallet-revive | ||
| bump: minor | ||
| - name: asset-hub-westend-runtime | ||
| bump: minor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
substrate/frame/revive/rpc/examples/js/abi/errorTester.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| export const abi = [ | ||
| { | ||
| inputs: [ | ||
| { | ||
| internalType: 'string', | ||
| name: 'message', | ||
| type: 'string', | ||
| }, | ||
| ], | ||
| name: 'CustomError', | ||
| type: 'error', | ||
| }, | ||
| { | ||
| inputs: [ | ||
| { | ||
| internalType: 'bool', | ||
| name: 'newState', | ||
| type: 'bool', | ||
| }, | ||
| ], | ||
| name: 'setState', | ||
| outputs: [], | ||
| stateMutability: 'nonpayable', | ||
| type: 'function', | ||
| }, | ||
| { | ||
| inputs: [], | ||
| name: 'state', | ||
| outputs: [ | ||
| { | ||
| internalType: 'bool', | ||
| name: '', | ||
| type: 'bool', | ||
| }, | ||
| ], | ||
| stateMutability: 'view', | ||
| type: 'function', | ||
| }, | ||
| { | ||
| inputs: [], | ||
| name: 'triggerAssertError', | ||
| outputs: [], | ||
| stateMutability: 'pure', | ||
| type: 'function', | ||
| }, | ||
| { | ||
| inputs: [], | ||
| name: 'triggerCustomError', | ||
| outputs: [], | ||
| stateMutability: 'pure', | ||
| type: 'function', | ||
| }, | ||
| { | ||
| inputs: [], | ||
| name: 'triggerDivisionByZero', | ||
| outputs: [ | ||
| { | ||
| internalType: 'uint256', | ||
| name: '', | ||
| type: 'uint256', | ||
| }, | ||
| ], | ||
| stateMutability: 'pure', | ||
| type: 'function', | ||
| }, | ||
| { | ||
| inputs: [], | ||
| name: 'triggerOutOfBoundsError', | ||
| outputs: [ | ||
| { | ||
| internalType: 'uint256', | ||
| name: '', | ||
| type: 'uint256', | ||
| }, | ||
| ], | ||
| stateMutability: 'pure', | ||
| type: 'function', | ||
| }, | ||
| { | ||
| inputs: [], | ||
| name: 'triggerRequireError', | ||
| outputs: [], | ||
| stateMutability: 'pure', | ||
| type: 'function', | ||
| }, | ||
| { | ||
| inputs: [], | ||
| name: 'triggerRevertError', | ||
| outputs: [], | ||
| stateMutability: 'pure', | ||
| type: 'function', | ||
| }, | ||
| { | ||
| inputs: [ | ||
| { | ||
| internalType: 'uint256', | ||
| name: 'value', | ||
| type: 'uint256', | ||
| }, | ||
| ], | ||
| name: 'valueMatch', | ||
| outputs: [], | ||
| stateMutability: 'payable', | ||
| type: 'function', | ||
| }, | ||
| ] as const |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| export const abi = [ | ||
| { | ||
| anonymous: false, | ||
| inputs: [ | ||
| { | ||
| indexed: true, | ||
| internalType: 'address', | ||
| name: 'sender', | ||
| type: 'address', | ||
| }, | ||
| { | ||
| indexed: false, | ||
| internalType: 'uint256', | ||
| name: 'value', | ||
| type: 'uint256', | ||
| }, | ||
| { | ||
| indexed: false, | ||
| internalType: 'string', | ||
| name: 'message', | ||
| type: 'string', | ||
| }, | ||
| ], | ||
| name: 'ExampleEvent', | ||
| type: 'event', | ||
| }, | ||
| { | ||
| inputs: [], | ||
| name: 'triggerEvent', | ||
| outputs: [], | ||
| stateMutability: 'nonpayable', | ||
| type: 'function', | ||
| }, | ||
| ] as const |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.