Skip to content

Commit

Permalink
rename Utils methods
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Apr 25, 2024
1 parent dc137e1 commit 5afa1ea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cadence/contracts/bridge/FlowEVMBridge.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ contract FlowEVMBridge : IFlowEVMNFTBridge, IFlowEVMTokenBridge {
let associatedAddress = FlowEVMBridgeConfig.getEVMAddressAssociated(with: type)
?? panic("No EVMAddress found for token type")
// Execute the transfer call and make needed state assertions to confirm escrow from named owner
FlowEVMBridgeUtils.mustExecuteERC721ProtectedTransferCall(
FlowEVMBridgeUtils.mustEscrowERC721(
owner: owner,
id: id,
erc721Address: associatedAddress,
Expand Down Expand Up @@ -490,7 +490,7 @@ contract FlowEVMBridge : IFlowEVMNFTBridge, IFlowEVMTokenBridge {

/* Execute the transfer call and make needed state assertions */
//
FlowEVMBridgeUtils.mustExecuteProtectedERC20TransferCall(
FlowEVMBridgeUtils.mustEscrowERC20(
owner: owner,
amount: amount,
erc20Address: associatedAddress,
Expand Down
2 changes: 1 addition & 1 deletion cadence/contracts/bridge/FlowEVMBridgeHandlers.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ access(all) contract FlowEVMBridgeHandlers {
erc20Address: evmAddress
)

FlowEVMBridgeUtils.mustExecuteProtectedERC20TransferCall(
FlowEVMBridgeUtils.mustEscrowERC20(
owner: owner,
amount: amount,
erc20Address: evmAddress,
Expand Down
4 changes: 2 additions & 2 deletions cadence/contracts/bridge/FlowEVMBridgeUtils.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ contract FlowEVMBridgeUtils {
/// was successful, and the bridge COA owns the NFT after the protected transfer call.
///
access(account)
fun mustExecuteERC721ProtectedTransferCall(
fun mustEscrowERC721(
owner: EVM.EVMAddress,
id: UInt256,
erc721Address: EVM.EVMAddress,
Expand Down Expand Up @@ -936,7 +936,7 @@ contract FlowEVMBridgeUtils {
/// escrow balance was incremented by the same amount.
///
access(account)
fun mustExecuteProtectedERC20TransferCall(
fun mustEscrowERC20(
owner: EVM.EVMAddress,
amount: UInt256,
erc20Address: EVM.EVMAddress,
Expand Down

0 comments on commit 5afa1ea

Please sign in to comment.