aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-03-16 18:48:33 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-03-24 20:15:18 +0800
commit72826bb5adddedf0fd4fb9903e883d4c64fa18a6 (patch)
tree9e20f17956a3d0ac5ecf2e64db80dedef0196d45 /eth
parent75c86f8646ed6a21116d6c5f5e400dd966bb218d (diff)
downloadgo-tangerine-72826bb5adddedf0fd4fb9903e883d4c64fa18a6.tar
go-tangerine-72826bb5adddedf0fd4fb9903e883d4c64fa18a6.tar.gz
go-tangerine-72826bb5adddedf0fd4fb9903e883d4c64fa18a6.tar.bz2
go-tangerine-72826bb5adddedf0fd4fb9903e883d4c64fa18a6.tar.lz
go-tangerine-72826bb5adddedf0fd4fb9903e883d4c64fa18a6.tar.xz
go-tangerine-72826bb5adddedf0fd4fb9903e883d4c64fa18a6.tar.zst
go-tangerine-72826bb5adddedf0fd4fb9903e883d4c64fa18a6.zip
accounts/abi/bind, cmd/abigen: Go API generator around an EVM ABI
Diffstat (limited to 'eth')
-rw-r--r--eth/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/api.go b/eth/api.go
index 347047332..c4b3a65c0 100644
--- a/eth/api.go
+++ b/eth/api.go
@@ -689,7 +689,7 @@ func (s *PublicBlockChainAPI) Call(args CallArgs, blockNr rpc.BlockNumber) (stri
// EstimateGas returns an estimate of the amount of gas needed to execute the given transaction.
func (s *PublicBlockChainAPI) EstimateGas(args CallArgs) (*rpc.HexNumber, error) {
- _, gas, err := s.doCall(args, rpc.LatestBlockNumber)
+ _, gas, err := s.doCall(args, rpc.PendingBlockNumber)
return rpc.NewHexNumber(gas), err
}