diff --git a/CHANGELOG.md b/CHANGELOG.md index 841bb1f890fa..03603d6e0cd2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,8 @@ ### Breaking +- [#6392](https://github.com/ChainSafe/forest/pull/6392): Changed execution reverted error code from 11 to 3. + ### Added - [#6339](https://github.com/ChainSafe/forest/pull/6339) Implemented `Filecoin.EthCall` for API v2. diff --git a/src/rpc/methods/eth/errors.rs b/src/rpc/methods/eth/errors.rs index 5ce33eff96b4..eb6902db06b9 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 {