accounts/abi/bind: support closing a simulated backend

This commit is contained in:
Péter Szilágyi
2019-07-31 11:35:57 +03:00
parent 96ab8e1575
commit 140a7e9177
6 changed files with 48 additions and 8 deletions

View File

@ -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")