accounts/abi: make sure that the old behavior is unchanged

This commit is contained in:
Guillaume Ballet 2019-01-03 11:23:53 +01:00
parent 7918687d1e
commit 8c72aa0288

View file

@ -52,4 +52,13 @@ func TestPassingBlockNumber(t *testing.T) {
t.Fatalf("CodeAt() was not passed the block number") 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")
}
} }