accounts/abi/bind: support closing a simulated backend
This commit is contained in:
@ -38,6 +38,7 @@ func TestSimulatedBackend(t *testing.T) {
|
||||
genAlloc[auth.From] = core.GenesisAccount{Balance: big.NewInt(9223372036854775807)}
|
||||
|
||||
sim := backends.NewSimulatedBackend(genAlloc, gasLimit)
|
||||
defer sim.Close()
|
||||
|
||||
// should return an error if the tx is not found
|
||||
txHash := common.HexToHash("2")
|
||||
|
Reference in New Issue
Block a user