mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
fix(rpc): update eth_simulateV1 revert error code to 3 (#22272)
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
committed by
GitHub
parent
48b2cd970f
commit
61038449c8
5
.changelog/fix-simulate-revert-code.md
Normal file
5
.changelog/fix-simulate-revert-code.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
reth-rpc-eth-types: patch
|
||||
---
|
||||
|
||||
Updated `eth_simulateV1` revert error code from `-32000` to `3` to be consistent with `eth_call`, per [execution-apis#748](https://github.com/ethereum/execution-apis/pull/748).
|
||||
@@ -31,8 +31,10 @@ use revm::{
|
||||
|
||||
/// Error code for execution reverted in `eth_simulateV1`.
|
||||
///
|
||||
/// <https://github.com/ethereum/execution-apis>
|
||||
pub const SIMULATE_REVERT_CODE: i32 = -32000;
|
||||
/// Consistent with `eth_call` revert error code.
|
||||
///
|
||||
/// <https://github.com/ethereum/execution-apis/pull/748>
|
||||
pub const SIMULATE_REVERT_CODE: i32 = 3;
|
||||
|
||||
/// Error code for VM execution errors (e.g., out of gas) in `eth_simulateV1`.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user