Skip to content

Commit

Permalink
fix erc20 deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Jan 28, 2024
1 parent 75a0afb commit f697008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/localnet/orchestrator/smoketest/runner/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ func (sm *SmokeTestRunner) SendUSDTOnEvm(address ethcommon.Address, amountUSDT i
func (sm *SmokeTestRunner) DepositERC20() ethcommon.Hash {
sm.Logger.Print("⏳ depositing ERC20 into ZEVM")

return sm.DepositERC20WithAmountAndMessage(big.NewInt(100000), []byte{})
return sm.DepositERC20WithAmountAndMessage(big.NewInt(1e18), []byte{})
}

func (sm *SmokeTestRunner) DepositERC20WithAmountAndMessage(amount *big.Int, msg []byte) ethcommon.Hash {
tx, err := sm.USDTERC20.Approve(sm.GoerliAuth, sm.ERC20CustodyAddr, big.NewInt(1e18))
tx, err := sm.USDTERC20.Approve(sm.GoerliAuth, sm.ERC20CustodyAddr, amount)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit f697008

Please sign in to comment.