Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gwen917 committed Nov 22, 2023
1 parent dccff64 commit 8688b4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions tests/add_fee_amount.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ func AddFeeAmount(network network.Network) {
ctx,
mockToken,
teleporterContractAddress,
big.NewInt(0).Mul(big.NewInt(1e18),
big.NewInt(10)),
big.NewInt(1e18),
subnetAInfo,
fundedKey,
)
Expand Down
8 changes: 4 additions & 4 deletions tests/erc20_bridge_multihop.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func ERC20BridgeMultihop(network network.Network) {

// Send a bridge transfer for the newly added token from subnet A to subnet B
totalAmount := big.NewInt(0).Mul(big.NewInt(1e18), big.NewInt(13))
primaryFeeAmount := big.NewInt(0).Mul(big.NewInt(1e18), big.NewInt(1))
primaryFeeAmount := big.NewInt(1e18)
secondaryFeeAmount := big.NewInt(0)
receipt, messageID = bridgeToken(
ctx,
Expand Down Expand Up @@ -221,8 +221,8 @@ func ERC20BridgeMultihop(network network.Network) {

// Unwrap bridged tokens back to subnet A, then wrap tokens to final destination on subnet C
totalAmount = big.NewInt(0).Mul(big.NewInt(1e18), big.NewInt(11))
primaryFeeAmount = big.NewInt(0).Mul(big.NewInt(1e18), big.NewInt(1))
secondaryFeeAmount = big.NewInt(0).Mul(big.NewInt(1e18), big.NewInt(1))
primaryFeeAmount = big.NewInt(1e18)
secondaryFeeAmount = big.NewInt(1e18)
receipt, messageID = bridgeToken(
ctx,
subnetBInfo,
Expand Down Expand Up @@ -293,7 +293,7 @@ func ERC20BridgeMultihop(network network.Network) {

// Send a transaction to unwrap tokens from Subnet C back to Subnet A
totalAmount = big.NewInt(0).Mul(big.NewInt(1e18), big.NewInt(8))
primaryFeeAmount = big.NewInt(0).Mul(big.NewInt(1e18), big.NewInt(1))
primaryFeeAmount = big.NewInt(1e18)
secondaryFeeAmount = big.NewInt(0)
receipt, messageID = bridgeToken(
ctx,
Expand Down

0 comments on commit 8688b4f

Please sign in to comment.