Skip to content

Commit c8e5606

Browse files
committed
fix: clear vm.Hooks at end of test
1 parent c8946b1 commit c8e5606

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/vm/evm.libevm_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ func TestOverrideNewEVMArgs(t *testing.T) {
2727
const chainID = 13579
2828
libevmHooks = nil
2929
RegisterHooks(chainIDOverrider{chainID: chainID})
30+
defer func() { libevmHooks = nil }()
3031

3132
got := NewEVM(BlockContext{}, TxContext{}, nil, nil, Config{}).ChainConfig().ChainID
3233
require.Equal(t, big.NewInt(chainID), got)

0 commit comments

Comments
 (0)