Skip to content

Commit

Permalink
fix: estimate gas pendingBlock to latestBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
alanorwick committed Jul 11, 2023
1 parent b0661fd commit 8de3825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/quaiapi/quai_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func (s *PublicBlockChainQuaiAPI) EstimateGas(ctx context.Context, args Transact
if nodeCtx != common.ZONE_CTX {
return 0, errors.New("estimateGas can only called in a zone chain")
}
bNrOrHash := rpc.BlockNumberOrHashWithNumber(rpc.PendingBlockNumber)
bNrOrHash := rpc.BlockNumberOrHashWithNumber(rpc.LatestBlockNumber)
if blockNrOrHash != nil {
bNrOrHash = *blockNrOrHash
}
Expand Down

0 comments on commit 8de3825

Please sign in to comment.