-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do we want to test that the url is what we expect? Or is this sufficient Edit: above is included in test now --------- Co-authored-by: ash <[email protected]>
- Loading branch information
1 parent
934776c
commit 216e369
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import "FlowtyWrapped" | ||
|
||
pub fun main(): String { | ||
return FlowtyWrapped.collectionExternalUrl | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import "FlowtyWrapped" | ||
|
||
|
||
transaction(url: String) { | ||
let admin: &FlowtyWrapped.Admin | ||
|
||
prepare(acct: AuthAccount) { | ||
self.admin = acct.borrow<&FlowtyWrapped.Admin>(from: FlowtyWrapped.AdminStoragePath) | ||
?? panic("Could not borrow a reference to the NFT minter") | ||
} | ||
|
||
execute { | ||
self.admin.setCollectionExternalUrl(url) | ||
} | ||
} |