diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d49f6dd22c..c0403307f57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,35 +27,7 @@ ### Breaking -- [#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. - -### Added - -- [#6465](https://github.com/ChainSafe/forest/pull/6465): Implemented `Filecoin.EthGetBlockTransactionCountByNumber` for API v2. - -- [#6466](https://github.com/ChainSafe/forest/pull/6466): Enabled `Filecoin.EthGetBlockTransactionCountByHash` for API v2. - -- [#6469](https://github.com/ChainSafe/forest/pull/6469): Implemented `Filecoin.EthGetTransactionByBlockNumberAndIndex` for API v2. - -- [#6451](https://github.com/ChainSafe/forest/pull/6451): Implemented `Filecoin.EthTraceBlock` for API v2. - -- [#6489](https://github.com/ChainSafe/forest/pull/6489): Implemented `Filecoin.EthGetBlockReceipts` for API v2. - -- [#6490](https://github.com/ChainSafe/forest/pull/6490): Implemented `Filecoin.EthGetCode` for API v2. - -### Changed - -- [#6471](https://github.com/ChainSafe/forest/pull/6471): Moved `forest-tool state` subcommand to `forest-dev`. - -### Removed - -### Fixed - -- [#6467](https://github.com/ChainSafe/forest/pull/6467): `Filecoin.EthGetBlockByNumber` now only supports retrieving a block by its block number or a special tag. - -## Forest v0.31.1 "Quadrantids" - -This is a non-mandatory release for all node operators. It includes the support for more V2 API's and a few critical API fixes. +- [#6392](https://github.com/ChainSafe/forest/pull/6392): Changed execution reverted error code from 11 to 3. ### Added diff --git a/src/rpc/methods/eth/errors.rs b/src/rpc/methods/eth/errors.rs index df8fa4e80d1..19628f4a1e4 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 {