Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
trunghai.bui committed Oct 25, 2023
1 parent 9f8087a commit 8c9ac1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e/bridge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,13 @@ func TestE2E(t *testing.T) {
// Send L1 deposit
var destNetwork uint32 = 1
amount := new(big.Int).SetUint64(10000000000000000000)
mintAmount := new(big.Int).SetUint64(35000000000000000000)

Check failure on line 75 in test/e2e/bridge_test.go

View workflow job for this annotation

GitHub Actions / test-e2e (1.19.x, amd64)

cannot use 35000000000000000000 (untyped int constant) as uint64 value in argument to new(big.Int).SetUint64 (overflows)
tokenAddr := common.HexToAddress("0xcFE6D77a653b988203BfAc9C6a69eA9D583bdC2b") // OKB ERC-20 token
destAddr := common.HexToAddress("0xc949254d682d8c9ad5682521675b8f43b102aec4")

// Mint OKB token
err = opsman.MintERC20(ctx, tokenAddr, mintAmount, operations.L1)
require.NoError(t, err)
l1Balance, err := opsman.CheckAccountTokenBalance(ctx, operations.L1, tokenAddr, &l1BridgeAddr)
require.NoError(t, err)
t.Logf("L1 Bridge Balance: %v", l1Balance)
Expand Down

0 comments on commit 8c9ac1c

Please sign in to comment.