From 5b8007466d65e9ee8bf2fc7cf2989a2664c21bcd Mon Sep 17 00:00:00 2001 From: Hubert Bugaj Date: Thu, 8 Jan 2026 13:33:40 +0100 Subject: [PATCH 1/2] chore!: changed execution reverted code from 11 to 3 --- CHANGELOG.md | 2 ++ src/rpc/methods/eth/errors.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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 { From e53df7384e2cc6eff156e8fb68a2862f7e5706d6 Mon Sep 17 00:00:00 2001 From: Hubert Bugaj Date: Thu, 29 Jan 2026 15:39:07 +0100 Subject: [PATCH 2/2] fix changelog --- CHANGELOG.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c0403307f577..43b4f3136431 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,10 +27,36 @@ ### 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. + - [#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. + +- [#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. + +### 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. + +### Added + - [#6339](https://github.com/ChainSafe/forest/pull/6339) Implemented `Filecoin.EthCall` for API v2. - [#6364](https://github.com/ChainSafe/forest/pull/6364) Implemented `Filecoin.EthEstimateGas` for API v2.