Skip to content

Commit

Permalink
other goerli net to rename in smoketests
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Nov 15, 2023
1 parent 563cc77 commit d7f9652
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Chains []Chain

// IsEqual compare two chain to see whether they represent the same chain
func (chain Chain) IsEqual(c Chain) bool {
if chain.ChainName == c.ChainName && chain.ChainId == c.ChainId {
if chain.ChainId == c.ChainId {
return true
}
return false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ func (sm *SmokeTest) TestBlockHeaders() {
}
fmt.Printf("block header tracing succeeded; expected at most %d, got %d\n", earliestBlock, bn)
}
checkBlock(common.GoerliChain().ChainId)
checkBlock(common.GoerliLocalnetChain().ChainId)
checkBlock(common.BtcRegtestChain().ChainId)
}
7 changes: 5 additions & 2 deletions contrib/localnet/orchestrator/smoketest/test_deposit_eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,13 @@ func (sm *SmokeTest) TestDepositEtherIntoZRC20() {
if err != nil {
panic(err)
}
ethZRC20Addr, err := systemContract.GasCoinZRC20ByChainId(&bind.CallOpts{}, big.NewInt(common.GoerliChain().ChainId))
ethZRC20Addr, err := systemContract.GasCoinZRC20ByChainId(&bind.CallOpts{}, big.NewInt(common.GoerliLocalnetChain().ChainId))
if err != nil {
panic(err)
}
if (ethZRC20Addr == ethcommon.Address{}) {
panic("eth zrc20 not found")
}
sm.ETHZRC20Addr = ethZRC20Addr
fmt.Printf("eth zrc20 address: %s\n", ethZRC20Addr.String())
ethZRC20, err := zrc20.NewZRC20(ethZRC20Addr, sm.zevmClient)
Expand Down Expand Up @@ -127,7 +130,7 @@ func (sm *SmokeTest) TestDepositEtherIntoZRC20() {
TxIndex: int64(txIndex),
TxHash: txHash.Hex(),
Proof: common.NewEthereumProof(txProof),
ChainId: common.GoerliChain().ChainId,
ChainId: common.GoerliLocalnetChain().ChainId,
})
if err != nil {
panic(err)
Expand Down

0 comments on commit d7f9652

Please sign in to comment.