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

Commit

Permalink
updates to e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Lam committed Jul 11, 2024
1 parent 70532a3 commit 7ba9627
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/utils/token_scaling.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func GetScaledAmountFromERC20TokenHome(
remoteAddress common.Address,
homeTokenAmount *big.Int,
) *big.Int {
remoteSettings, err := erc20TokenHome.RegisteredRemotes(
remoteSettings, err := erc20TokenHome.GetRemoteTokenTransferrerSettings(
&bind.CallOpts{},
remoteBlockchainID,
remoteAddress,
Expand All @@ -77,7 +77,7 @@ func GetScaledAmountFromNativeTokenHome(
remoteAddress common.Address,
amount *big.Int,
) *big.Int {
remoteSettings, err := nativeTokenHome.RegisteredRemotes(
remoteSettings, err := nativeTokenHome.GetRemoteTokenTransferrerSettings(
&bind.CallOpts{},
remoteBlockchainID,
remoteAddress,
Expand Down
6 changes: 3 additions & 3 deletions tests/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ func AddCollateralToERC20TokenHome(
Expect(event.RemoteBlockchainID[:]).Should(Equal(remoteBlockchainID[:]))
Expect(event.RemoteTokenTransferrerAddress).Should(Equal(remoteAddress))

remoteSettings, err := erc20TokenHome.RegisteredRemotes(
remoteSettings, err := erc20TokenHome.GetRemoteTokenTransferrerSettings(
&bind.CallOpts{},
remoteBlockchainID,
remoteAddress)
Expand Down Expand Up @@ -562,7 +562,7 @@ func AddCollateralToNativeTokenHome(
Expect(err).Should(BeNil())
Expect(event.RemoteBlockchainID[:]).Should(Equal(remoteBlockchainID[:]))
Expect(event.RemoteTokenTransferrerAddress).Should(Equal(remoteAddress))
remoteSettings, err := nativeTokenHome.RegisteredRemotes(
remoteSettings, err := nativeTokenHome.GetRemoteTokenTransferrerSettings(
&bind.CallOpts{},
remoteBlockchainID,
remoteAddress)
Expand Down Expand Up @@ -812,7 +812,7 @@ func SendAndCallNativeTokenHome(
Expect(event.Input.RecipientContract).Should(Equal(input.RecipientContract))

// Compute the scaled amount
remoteSettings, err := nativeTokenHome.RegisteredRemotes(
remoteSettings, err := nativeTokenHome.GetRemoteTokenTransferrerSettings(
&bind.CallOpts{},
input.DestinationBlockchainID,
input.DestinationTokenTransferrerAddress)
Expand Down

0 comments on commit 7ba9627

Please sign in to comment.