Last active
June 20, 2024 17:06
-
-
Save SupunS/c732360df3fa969e09a161776a1af0ab to your computer and use it in GitHub Desktop.
Updates to the contracts to comply with the FLIP https://github.com/onflow/flips/pull/277
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
diff --git a/AFLAdmin.cdc b/AFLAdmin_updated.cdc | |
index 2841095..f6fed29 100644 | |
--- a/AFLAdmin.cdc | |
+++ b/AFLAdmin_updated.cdc | |
@@ -20,7 +20,7 @@ access(all) contract AFLAdmin { | |
} | |
access(all) fun updateImmutableData(templateID:UInt64, immutableData:{String: AnyStruct}){ | |
- let templateRef: &AFLNFT.Template? = &AFLNFT.allTemplates[templateID] | |
+ let templateRef: &AFLNFT.Template? = AFLNFT.allTemplates[templateID] | |
templateRef?.updateImmutableData(immutableData) ?? panic("Template does not exist") | |
} | |
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
diff --git a/BBxBarbiePM.cdc b/BBxBarbiePM_updated.cdc | |
index dee57b4..299a8d9 100644 | |
--- a/BBxBarbiePM.cdc | |
+++ b/BBxBarbiePM_updated.cdc | |
@@ -542,17 +542,17 @@ access(all) contract BBxBarbiePM { | |
} | |
- access(all) fun getPackEditionIdByPackSeriesId(): {UInt64: UInt64}{ | |
+ access(all) fun getPackEditionIdByPackSeriesId(): &{UInt64: UInt64}{ | |
return BBxBarbiePack.currentPackEditionIdByPackSeriesId | |
} | |
- access(all) fun getCardEditionIdByPackSeriesId(): {UInt64: UInt64}{ | |
+ access(all) fun getCardEditionIdByPackSeriesId(): &{UInt64: UInt64}{ | |
return BBxBarbieCard.currentCardEditionIdByPackSeriesId | |
} | |
- access(all) fun getTokenEditionIdByPackSeriesId(): {UInt64: UInt64}{ | |
+ access(all) fun getTokenEditionIdByPackSeriesId(): &{UInt64: UInt64}{ | |
return BBxBarbieToken.currentTokenEditionIdByPackSeriesId | |
} | |
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
diff --git a/HWGaragePMV2.cdc b/HWGaragePMV2_updated.cdc | |
index 9d4dcd7..1446820 100644 | |
--- a/HWGaragePMV2.cdc | |
+++ b/HWGaragePMV2_updated.cdc | |
@@ -562,12 +562,12 @@ access(all) event AdminMintToken( | |
} | |
- access(all) fun getPackEditionIdByPackSeriesId(): {UInt64: UInt64}{ | |
+ access(all) fun getPackEditionIdByPackSeriesId(): &{UInt64: UInt64}{ | |
return HWGaragePackV2.currentPackEditionIdByPackSeriesId | |
} | |
- access(all) fun getCardEditionIdByPackSeriesId(): {UInt64: UInt64}{ | |
+ access(all) fun getCardEditionIdByPackSeriesId(): &{UInt64: UInt64}{ | |
return HWGarageCardV2.currentCardEditionIdByPackSeriesId | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment