Created
December 8, 2023 22:43
-
-
Save bjartek/54cbe20708ee6c37d750460c5b2b64a3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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(name: String) { | |
prepare(signer: auth(StorageCapabilities) &Account) { | |
signer.capabilities.storage.forEachController( | |
forPath:BasicNFT.minterPath, | |
revokeWithTag(tag: name) | |
) | |
} | |
} | |
access(all) | |
fun revokeWithTag(tag:String) : fun(&StorageCapabilityController): Bool { | |
return fun(scc: &StorageCapabilityController) : Bool { | |
if scc.tag == tag { | |
scc.delete() | |
return false | |
} | |
return true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment