From 8c72aa02883df10c0ac640a348b5b34148ee0804 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet Date: Thu, 3 Jan 2019 11:23:53 +0100 Subject: [PATCH] accounts/abi: make sure that the old behavior is unchanged --- accounts/abi/bind/base_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/accounts/abi/bind/base_test.go b/accounts/abi/bind/base_test.go index c088d4c183..8adff8b59b 100644 --- a/accounts/abi/bind/base_test.go +++ b/accounts/abi/bind/base_test.go @@ -52,4 +52,13 @@ func TestPassingBlockNumber(t *testing.T) { t.Fatalf("CodeAt() was not passed the block number") } + bc.Call(&bind.CallOpts{}, &ret, "something") + + if mc.callContractBlockNumber != nil { + t.Fatalf("CallContract() was passed a block number when it should not have been") + } + + if mc.codeAtBlockNumber != nil { + t.Fatalf("CodeAt() was passed a block number when it should not have been") + } }