@@ -15,16 +15,16 @@ import ClassPlus "mo:class-plus";
1515import DefaultConfig "defaultConfig" ;
1616
1717// --- Actor Definition ---
18- shared (init_msg) actor class NftCanister () : async (ICRC7 . Service . Service ) = this {
18+ shared (init_msg) persistent actor class NftCanister () : async (ICRC7 . Service . Service ) = this {
1919
2020 // --- Initialization ---
21- let initManager = ClassPlus . ClassPlusInitializationManager (
21+ transient let initManager = ClassPlus . ClassPlusInitializationManager (
2222 init_msg. caller,
2323 Principal . fromActor(this),
2424 true ,
2525 );
2626
27- stable var icrc7_migration_state = ICRC7 . initialState();
27+ var icrc7_migration_state = ICRC7 . initialState();
2828
2929 private func get_icrc7_environment() : ICRC7 . Environment {
3030 {
@@ -36,7 +36,7 @@ shared (init_msg) actor class NftCanister() : async (ICRC7.Service.Service) = th
3636 };
3737 };
3838
39- let icrc7 = ICRC7 . Init < system > ({
39+ transient let icrc7 = ICRC7 . Init < system > ({
4040 manager = initManager;
4141 initialState = icrc7_migration_state;
4242 args = DefaultConfig . defaultConfig(init_msg. caller);
@@ -165,7 +165,7 @@ shared (init_msg) actor class NftCanister() : async (ICRC7.Service.Service) = th
165165 icrc7(). transfer< system > (msg. caller, args);
166166 };
167167
168- stable var hasBeenClaimed = false ;
168+ var hasBeenClaimed = false ;
169169
170170 public shared (msg) func claimCollection() : async () {
171171 if (hasBeenClaimed) {
@@ -177,7 +177,7 @@ shared (init_msg) actor class NftCanister() : async (ICRC7.Service.Service) = th
177177
178178 // --- Custom NFT Minting Example ---
179179
180- stable var nextTokenId = 0 ;
180+ var nextTokenId = 0 ;
181181
182182 public shared (msg) func mint(to : ICRC7 . Account ) : async [ICRC7 . SetNFTResult ] {
183183 let setNftRequest : ICRC7 . SetNFTItemRequest = {
0 commit comments