diff --git a/scripts/tests/api_compare/filter-list b/scripts/tests/api_compare/filter-list index 81ae2ea45ec..231e30d975e 100644 --- a/scripts/tests/api_compare/filter-list +++ b/scripts/tests/api_compare/filter-list @@ -6,8 +6,6 @@ !Filecoin.StateReplay # TODO(elmattic): https://github.com/ChainSafe/forest/issues/4851 !Filecoin.EthGetLogs -# TODO: https://github.com/ChainSafe/forest/issues/4968 -!Filecoin.StateCirculatingSupply # TODO: https://github.com/ChainSafe/forest/issues/4996 !Filecoin.EthGetTransactionReceipt !Filecoin.EthGetTransactionReceiptLimited diff --git a/scripts/tests/api_compare/filter-list-offline b/scripts/tests/api_compare/filter-list-offline index d1ddba7338d..ce5125318fd 100644 --- a/scripts/tests/api_compare/filter-list-offline +++ b/scripts/tests/api_compare/filter-list-offline @@ -36,8 +36,6 @@ !Filecoin.ChainSetHead # TODO(elmattic): https://github.com/ChainSafe/forest/issues/4759 !Filecoin.EthGetLogs -# TODO: https://github.com/ChainSafe/forest/issues/4968 -!Filecoin.StateCirculatingSupply # TODO: https://github.com/ChainSafe/forest/issues/4996 !Filecoin.EthGetTransactionReceipt !Filecoin.EthGetTransactionReceiptLimited diff --git a/src/rpc/methods/state.rs b/src/rpc/methods/state.rs index 6d054360702..9c8da95cd5c 100644 --- a/src/rpc/methods/state.rs +++ b/src/rpc/methods/state.rs @@ -1542,7 +1542,8 @@ impl RpcMethod<1> for StateCirculatingSupply { let height = ts.epoch(); let root = ts.parent_state(); let genesis_info = GenesisInfo::from_chain_config(ctx.chain_config().clone()); - let supply = genesis_info.get_state_circulating_supply(height, &ctx.store_owned(), root)?; + let supply = + genesis_info.get_state_circulating_supply(height - 1, &ctx.store_owned(), root)?; Ok(supply) } }