diff --git a/tests/basic_one_way_send.go b/tests/basic_one_way_send.go index 2df3f9f48..496f94b0b 100644 --- a/tests/basic_one_way_send.go +++ b/tests/basic_one_way_send.go @@ -6,7 +6,7 @@ import ( "github.com/ava-labs/awm-relayer/messages/teleporter" "github.com/ava-labs/subnet-evm/interfaces" - teleportermessenger "github.com/ava-labs/teleporter/abis/TeleporterMessenger" + teleportermessenger "github.com/ava-labs/teleporter/abi-bindings/Teleporter/TeleporterMessenger" "github.com/ava-labs/teleporter/tests/utils" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/log" @@ -49,7 +49,7 @@ func BasicOneWaySend() { log.Info("Sending Teleporter transaction on source chain", "destinationChainID", subnetBInfo.BlockchainID, "txHash", signedTx.Hash()) receipt := utils.SendTransactionAndWaitForAcceptance(ctx, subnetAInfo.ChainWSClient, signedTx) - bind, err := teleportermessenger.NewTeleportermessenger(teleporterContractAddress, subnetAInfo.ChainWSClient) + bind, err := teleportermessenger.NewTeleporterMessenger(teleporterContractAddress, subnetAInfo.ChainWSClient) Expect(err).Should(BeNil()) event, err := utils.GetSendEventFromLogs(receipt.Logs, bind) Expect(err).Should(BeNil()) diff --git a/tests/utils/utils.go b/tests/utils/utils.go index 669d681c4..f18542398 100644 --- a/tests/utils/utils.go +++ b/tests/utils/utils.go @@ -15,7 +15,7 @@ import ( "github.com/ava-labs/avalanchego/ids" avalancheWarp "github.com/ava-labs/avalanchego/vms/platformvm/warp" warpBackend "github.com/ava-labs/subnet-evm/warp" - teleportermessenger "github.com/ava-labs/teleporter/abis/TeleporterMessenger" + teleportermessenger "github.com/ava-labs/teleporter/abi-bindings/Teleporter/TeleporterMessenger" "github.com/ava-labs/awm-relayer/messages/teleporter" "github.com/ava-labs/subnet-evm/core/types" @@ -305,7 +305,7 @@ func RelayMessage( log.Info("Sending transaction to destination chain") receipt := SendTransactionAndWaitForAcceptance(ctx, destination.ChainWSClient, signedTx) - bind, err := teleportermessenger.NewTeleportermessenger(teleporterContractAddress, source.ChainWSClient) + bind, err := teleportermessenger.NewTeleporterMessenger(teleporterContractAddress, source.ChainWSClient) Expect(err).Should(BeNil()) // Check the transaction logs for the ReceiveCrossChainMessage event emitted by the Teleporter contract event, err := GetReceiveEventFromLogs(receipt.Logs, bind) @@ -314,7 +314,7 @@ func RelayMessage( return nil } -func GetReceiveEventFromLogs(logs []*types.Log, bind *teleportermessenger.Teleportermessenger) (*teleportermessenger.TeleportermessengerReceiveCrossChainMessage, error) { +func GetReceiveEventFromLogs(logs []*types.Log, bind *teleportermessenger.TeleporterMessenger) (*teleportermessenger.TeleporterMessengerReceiveCrossChainMessage, error) { for _, log := range logs { event, err := bind.ParseReceiveCrossChainMessage(*log) if err == nil { @@ -325,7 +325,7 @@ func GetReceiveEventFromLogs(logs []*types.Log, bind *teleportermessenger.Telepo return nil, fmt.Errorf("failed to find ReceiveCrossChainMessage event in receipt logs") } -func GetSendEventFromLogs(logs []*types.Log, bind *teleportermessenger.Teleportermessenger) (*teleportermessenger.TeleportermessengerSendCrossChainMessage, error) { +func GetSendEventFromLogs(logs []*types.Log, bind *teleportermessenger.TeleporterMessenger) (*teleportermessenger.TeleporterMessengerSendCrossChainMessage, error) { for _, log := range logs { event, err := bind.ParseSendCrossChainMessage(*log) if err == nil {