-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new failed deposit trace call frame
Natively supports the trace call where a deposit fails. Frame will appear empty with a "failed_deposit" type and the proper amount of gas used. Clients can now use and understand the result.
- Loading branch information
1 parent
0ff6f56
commit fbc3318
Showing
6 changed files
with
122 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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 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
47 changes: 47 additions & 0 deletions
47
eth/tracers/internal/tracetest/testdata/call_tracer/failed_deposit.json
This file contains 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,47 @@ | ||
{ | ||
"context": { | ||
"difficulty": "3699098917", | ||
"gasLimit": "5258985", | ||
"miner": "0xd049bfd667cb46aa3ef5df0da3e57db3be39e511", | ||
"number": "2294631", | ||
"timestamp": "1513675366" | ||
}, | ||
"genesis": { | ||
"alloc": {}, | ||
"config": { | ||
"chainId": 3, | ||
"daoForkSupport": true, | ||
"eip150Hash": "0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d", | ||
"ethash": {}, | ||
"eip150Block": 0, | ||
"eip155Block": 0, | ||
"eip158Block": 0, | ||
"byzantiumBlock": 0, | ||
"constantinopleBlock": 0, | ||
"petersburgBlock": 0, | ||
"istanbulBlock": 0, | ||
"berlinBlock": 0, | ||
"londonBlock": 0 | ||
}, | ||
"difficulty": "3699098917", | ||
"extraData": "0x4554482e45544846414e532e4f52472d4641313738394444", | ||
"gasLimit": "5263953", | ||
"hash": "0x03a0f62a8106793dafcfae7b75fd2654322062d585a19cea568314d7205790dc", | ||
"miner": "0xbbf5029fd710d227630c8b7d338051b8e76d50b3", | ||
"mixHash": "0x15482cc64b7c00a947f5bf015dfc010db1a6a668c74df61974d6a7848c174408", | ||
"nonce": "0xd1bdb150f6fd170e", | ||
"number": "2294630", | ||
"stateRoot": "0x1ab1a534e84cc787cda1db21e0d5920ab06017948075b759166cfea7274657a1", | ||
"timestamp": "1513675347", | ||
"totalDifficulty": "7160543502214733" | ||
}, | ||
"input": "0x7ef85aa0b4f9f798a5fe956d1b79c3eff355febf9e1039a7440948845536982cb62aa03194bc339e628e6fe32c39e84392d087567b2743ea3594bc339e628e6fe32c39e84392d087567b2743ea3580871aa535d3d0c00083030d408000", | ||
"result": { | ||
"from":"0x0000000000000000000000000000000000000000", | ||
"gas":"0x0", | ||
"gasUsed":"0x30d40", | ||
"input":"0x", | ||
"error": "failed deposit transaction", | ||
"type":"STOP" | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
eth/tracers/internal/tracetest/testdata/call_tracer_flat/failed_deposit.json
This file contains 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,59 @@ | ||
{ | ||
"context": { | ||
"difficulty": "3699098917", | ||
"gasLimit": "5258985", | ||
"miner": "0xd049bfd667cb46aa3ef5df0da3e57db3be39e511", | ||
"number": "2294631", | ||
"timestamp": "1513675366" | ||
}, | ||
"genesis": { | ||
"alloc": {}, | ||
"config": { | ||
"chainId": 3, | ||
"daoForkSupport": true, | ||
"eip150Hash": "0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d", | ||
"ethash": {}, | ||
"eip150Block": 0, | ||
"eip155Block": 0, | ||
"eip158Block": 0, | ||
"byzantiumBlock": 0, | ||
"constantinopleBlock": 0, | ||
"petersburgBlock": 0, | ||
"istanbulBlock": 0, | ||
"berlinBlock": 0, | ||
"londonBlock": 0 | ||
}, | ||
"difficulty": "3699098917", | ||
"extraData": "0x4554482e45544846414e532e4f52472d4641313738394444", | ||
"gasLimit": "5263953", | ||
"hash": "0x03a0f62a8106793dafcfae7b75fd2654322062d585a19cea568314d7205790dc", | ||
"miner": "0xbbf5029fd710d227630c8b7d338051b8e76d50b3", | ||
"mixHash": "0x15482cc64b7c00a947f5bf015dfc010db1a6a668c74df61974d6a7848c174408", | ||
"nonce": "0xd1bdb150f6fd170e", | ||
"number": "2294630", | ||
"stateRoot": "0x1ab1a534e84cc787cda1db21e0d5920ab06017948075b759166cfea7274657a1", | ||
"timestamp": "1513675347", | ||
"totalDifficulty": "7160543502214733" | ||
}, | ||
"input": "0x7ef85aa0b4f9f798a5fe956d1b79c3eff355febf9e1039a7440948845536982cb62aa03194bc339e628e6fe32c39e84392d087567b2743ea3594bc339e628e6fe32c39e84392d087567b2743ea3580871aa535d3d0c00083030d408000", | ||
"result": [ | ||
{ | ||
"action": { | ||
"callType": "stop", | ||
"from": "0x0000000000000000000000000000000000000000", | ||
"gas": "0x0", | ||
"input": "0x", | ||
"value": "0x0" | ||
}, | ||
"blockNumber": 0, | ||
"error": "failed deposit transaction", | ||
"result": { | ||
"gasUsed": "0x0", | ||
"output": "0x" | ||
}, | ||
"subtraces": 0, | ||
"traceAddress": [], | ||
"type": "call" | ||
} | ||
] | ||
} |
This file contains 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 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