Skip to content

Commit

Permalink
add USDCFlow TokenMinter configuration transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Aug 9, 2024
1 parent 4e98a82 commit 794cdc4
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import "USDCFlow"

/// Sends the USDCFlow Minter to the bridge for use in the TokenHandler
///
/// @param bridgeAddress: The address of the bridge to send the minter to
///
/// NOTE: This transaction should be executed after the TokenHandler has been configured and minter type has been set.
/// As implemented in FlowEVMBridgeHandlers.CadenceNativeTokenHandler, a minter can only be configured once and must
/// be of the expected type when set.
///
transaction(bridgeAddress: Address) {
prepare(signer: &Account) {
USDCFlow.sendMinterToBridge(bridgeAddress)
}
}

0 comments on commit 794cdc4

Please sign in to comment.