Created
December 8, 2023 22:42
-
-
Save bjartek/7b360e70c9aacd1d3093caf98ca93408 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "BasicNFT" | |
transaction(provider:Address, name:String) { | |
prepare(signer: auth(ClaimInboxCapability, SaveValue) &Account) { | |
//we get the capability from our inbox | |
let capability = signer.inbox.claim<&BasicNFT.Minter>(name, provider:provider)! | |
//we then save the capability to our storage so we can retrieve it | |
signer.storage.save(capability, to: BasicNFT.minterPath) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment