diff --git a/CHANGELOG.md b/CHANGELOG.md index c9285560bae4..f50121804636 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,8 @@ - [#6475](https://github.com/ChainSafe/forest/pull/6475): Increased default JWT (generated via `Filecoin.AuthNew`) expiration time from 24 hours to 100 years to match Lotus behavior and ensure compatibility with clients like Curio. +- [#6392](https://github.com/ChainSafe/forest/pull/6392): Changed execution reverted error code from 11 to 3. + ### Added - [#6465](https://github.com/ChainSafe/forest/pull/6465): Implemented `Filecoin.EthGetBlockTransactionCountByNumber` for API v2. diff --git a/src/rpc/methods/eth/errors.rs b/src/rpc/methods/eth/errors.rs index df8fa4e80d18..19628f4a1e4c 100644 --- a/src/rpc/methods/eth/errors.rs +++ b/src/rpc/methods/eth/errors.rs @@ -8,8 +8,8 @@ use std::fmt::Debug; use thiserror::Error; /// This error indicates that the execution reverted while executing the message. -/// Code is taken from https://github.com/filecoin-project/lotus/blob/release/v1.32.1/api/api_errors.go#L27 -pub const EXECUTION_REVERTED_CODE: i32 = 11; +/// Error code 3 was introduced in geth v1.9.15 and is now expected by most Ethereum ecosystem tooling for automatic ABI decoding of revert reasons from the error data field. +pub const EXECUTION_REVERTED_CODE: i32 = 3; #[derive(Clone, Debug, Error, Serialize)] pub enum EthErrors {