From 66629f25fc54d7bd2fa4c2af7f52f5577be1f67c Mon Sep 17 00:00:00 2001 From: Giovanni Sanchez <108043524+sisyphusSmiling@users.noreply.github.com> Date: Tue, 10 Sep 2024 09:52:16 -0600 Subject: [PATCH] fix bridge interface error messages --- cadence/contracts/bridge/interfaces/IFlowEVMNFTBridge.cdc | 5 ++++- cadence/contracts/bridge/interfaces/IFlowEVMTokenBridge.cdc | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cadence/contracts/bridge/interfaces/IFlowEVMNFTBridge.cdc b/cadence/contracts/bridge/interfaces/IFlowEVMNFTBridge.cdc index 1d766281..eb79e021 100644 --- a/cadence/contracts/bridge/interfaces/IFlowEVMNFTBridge.cdc +++ b/cadence/contracts/bridge/interfaces/IFlowEVMNFTBridge.cdc @@ -73,7 +73,10 @@ access(all) contract interface IFlowEVMNFTBridge { evmID: CrossVMNFT.getEVMID(from: &token as &{NonFungibleToken.NFT}) ?? UInt256(token.id), to: to.toString(), evmContractAddress: self.getAssociatedEVMAddress(with: token.getType())?.toString() - ?? panic("Could not find EVM Contract address associated with provided NFT"), + ?? panic( + "Could not find EVM Contract address associated with provided NFT identifier=" + .concat(token.getType().identifier) + ), bridgeAddress: self.account.address ) } diff --git a/cadence/contracts/bridge/interfaces/IFlowEVMTokenBridge.cdc b/cadence/contracts/bridge/interfaces/IFlowEVMTokenBridge.cdc index cb3ab53c..7033ebef 100644 --- a/cadence/contracts/bridge/interfaces/IFlowEVMTokenBridge.cdc +++ b/cadence/contracts/bridge/interfaces/IFlowEVMTokenBridge.cdc @@ -67,7 +67,10 @@ access(all) contract interface IFlowEVMTokenBridge { bridgedUUID: vault.uuid, to: to.toString(), evmContractAddress: self.getAssociatedEVMAddress(with: vault.getType())?.toString() - ?? panic("Could not find EVM Contract address associated with provided NFT"), + ?? panic( + "Could not find EVM Contract address associated with provided Token identifier=" + .concat(vault.getType().identifier) + ), bridgeAddress: self.account.address ) }