-
Notifications
You must be signed in to change notification settings - Fork 878
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for movePrecompileToAddress in State Overrides (eth_call) (…
…#8115) Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
- Loading branch information
1 parent
9c12ed1
commit 5cc309a
Showing
17 changed files
with
615 additions
and
137 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
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
33 changes: 33 additions & 0 deletions
33
...er/besu/ethereum/api/jsonrpc/eth/eth_call_stateOverride_movePrecompileToAddress_null.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,33 @@ | ||
{ | ||
"request": { | ||
"id": 3, | ||
"jsonrpc": "2.0", | ||
"method": "eth_call", | ||
"params": [ | ||
{ | ||
"to": "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f", | ||
"from": "a94f5374fce5edbc8e2a8697c15331677e6ebf0b", | ||
"data": "0x12a7b914" | ||
}, | ||
"latest", | ||
{ | ||
"a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { | ||
"balance": "0xde0b6b3a7640000", | ||
"nonce": 88 | ||
}, | ||
"0xb9741079a300Cb3B8f324CdDB847c0d1d273a05E": { | ||
"stateDiff": { | ||
"0x1cf7945003fc5b59d2f6736f0704557aa805c4f2844084ccd1173b8d56946962": "0x000000000000000000000000000000000000000000000000000000110ed03bf7" | ||
}, | ||
"movePrecompileToAddress":null | ||
} | ||
} | ||
] | ||
}, | ||
"response": { | ||
"jsonrpc": "2.0", | ||
"id": 3, | ||
"result": "0x0000000000000000000000000000000000000000000000000000000000000001" | ||
}, | ||
"statusCode": 200 | ||
} |
32 changes: 32 additions & 0 deletions
32
...erledger/besu/ethereum/api/jsonrpc/eth/eth_call_stateOverride_overridePrecompileCode.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,32 @@ | ||
{ | ||
"request": { | ||
"id": 3, | ||
"jsonrpc": "2.0", | ||
"method": "eth_call", | ||
"params": [ | ||
{ | ||
"from": "0xc100000000000000000000000000000000000000", | ||
"comment": "Call to precompile ECREC (0x01), but code was modified to add 1 to input", | ||
"to": "0x0000000000000000000000000000000000000001", | ||
"input": "0x0000000000000000000000000000000000000000000000000000000000000001" | ||
}, | ||
"latest", | ||
{ | ||
"0xc100000000000000000000000000000000000000": { | ||
"balance": "0xde0b6b3a7640000" | ||
}, | ||
"0x0000000000000000000000000000000000000001": { | ||
"comment": "The code below adds one to input", | ||
"code": "0x60003560010160005260206000f3", | ||
"movePrecompileToAddress": "0x0000000000000000000000000000000000123456" | ||
} | ||
} | ||
] | ||
}, | ||
"response": { | ||
"jsonrpc": "2.0", | ||
"id": 3, | ||
"result": "0x0000000000000000000000000000000000000000000000000000000000000002" | ||
}, | ||
"statusCode": 200 | ||
} |
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
Oops, something went wrong.