Skip to content

Commit

Permalink
fix bridge interface error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Sep 10, 2024
1 parent e5aa113 commit 66629f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cadence/contracts/bridge/interfaces/IFlowEVMNFTBridge.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
Expand Down
5 changes: 4 additions & 1 deletion cadence/contracts/bridge/interfaces/IFlowEVMTokenBridge.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
Expand Down

0 comments on commit 66629f2

Please sign in to comment.