diff --git a/plugin/evm/orderbook/testing_apis.go b/plugin/evm/orderbook/testing_apis.go index dfee1d9908..7963ff7cd3 100644 --- a/plugin/evm/orderbook/testing_apis.go +++ b/plugin/evm/orderbook/testing_apis.go @@ -76,5 +76,5 @@ func (api *TestingAPI) GetSnapshot(ctx context.Context) (Snapshot, error) { } func getCurrentBlockNumber(backend *eth.EthAPIBackend) uint64 { - return backend.CurrentHeader().Number.Uint64() + return backend.LastAcceptedBlock().NumberU64() }