Skip to content

Commit

Permalink
test:multi test instance error
Browse files Browse the repository at this point in the history
  • Loading branch information
lochjin committed Oct 13, 2024
1 parent b63f3b8 commit 83f7a73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions meerevm/meer/meerchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func (b *MeerChain) Stop() error {
}

b.meerpool.Stop()
meerchange.DisableContractAddr()
return nil
}

Expand Down
5 changes: 5 additions & 0 deletions meerevm/meer/meerchange/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,8 @@ func GetChainID() *big.Int {
func EnableContractAddr() {
ContractAddr = common.HexToAddress(CONTRACTADDRESS)
}

func DisableContractAddr() {
ContractAddr = common.Address{}
Bytecode = nil
}

0 comments on commit 83f7a73

Please sign in to comment.