Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
clean up e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Lam committed Mar 19, 2024
1 parent 7aa98bf commit 0a86307
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/flows/erc20source_multihop.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ func ERC20SourceMultihop(network interfaces.Network) {
erc20Destination_B,
erc20DestinationAddress_B,
cChainInfo,
erc20Source,
bridgedAmount,
)

Expand All @@ -154,7 +153,6 @@ func ERC20SourceMultihop(network interfaces.Network) {
erc20Destination_A,
erc20DestinationAddress_A,
cChainInfo,
erc20Source,
bridgedAmount,
)
}
Expand All @@ -172,7 +170,6 @@ func sendERC20MultihopAndVerify(
toBridge *erc20destination.ERC20Destination,
toBridgeAddress common.Address,
cChainInfo interfaces.SubnetTestInfo,
erc20Source *erc20source.ERC20Source,
bridgedAmount *big.Int,
) {
teleporterUtils.SendNativeTransfer(
Expand All @@ -182,7 +179,7 @@ func sendERC20MultihopAndVerify(
recipientAddress,
big.NewInt(1e18),
)
input_A := erc20destination.SendTokensInput{
input := erc20destination.SendTokensInput{
DestinationBlockchainID: toSubnet.BlockchainID,
DestinationBridgeAddress: toBridgeAddress,
Recipient: recipientAddress,
Expand All @@ -196,7 +193,7 @@ func sendERC20MultihopAndVerify(
fromSubnet,
fromBridge,
fromBridgeAddress,
input_A,
input,
bridgedAmount,
recipientKey,
)
Expand All @@ -209,11 +206,6 @@ func sendERC20MultihopAndVerify(
true,
)

hopSendEvent, err := teleporterUtils.GetEventFromLogs(receipt.Logs, erc20Source.ParseSendTokens)
Expect(err).Should(BeNil())

Expect(hopSendEvent.Amount).Should(Equal(bridgedAmount))

receipt = network.RelayMessage(
ctx,
receipt,
Expand Down

0 comments on commit 0a86307

Please sign in to comment.