Skip to content

Commit d3ac0d6

Browse files
more
1 parent c8e6a95 commit d3ac0d6

File tree

14 files changed

+23
-23
lines changed

14 files changed

+23
-23
lines changed

motoko/classes/src/test/Test.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Debug "mo:base/Debug";
22
import Map "canister:map";
33

4-
actor Test {
4+
persistent actor Test {
55

66
public func run() : async () {
77
var i = 0;

motoko/ic-pos/src/icpos/main.mo

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ import HttpTypes "http/http.types";
2424
*
2525
* `_startBlock` is the block number to start monitoring transactions from.
2626
*/
27-
shared (actorContext) actor class Main(_startBlock : Nat) {
27+
shared (actorContext) persistent actor class Main(_startBlock : Nat) {
2828

29-
private stable var merchantStore : Trie.Trie<Text, MainTypes.Merchant> = Trie.empty();
30-
private stable var latestTransactionIndex : Nat = 0;
31-
private stable var courierApiKey : Text = "";
32-
private var logData = Buffer.Buffer<Text>(0);
29+
private var merchantStore : Trie.Trie<Text, MainTypes.Merchant> = Trie.empty();
30+
private var latestTransactionIndex : Nat = 0;
31+
private var courierApiKey : Text = "";
32+
private transient var logData = Buffer.Buffer<Text>(0);
3333

3434
/**
3535
* Get the merchant's information

motoko/icp_transfer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ import Result "mo:base/Result";
182182
import Error "mo:base/Error";
183183
import Principal "mo:base/Principal";
184184

185-
actor {
185+
persistent actor {
186186
type Tokens = {
187187
e8s : Nat64;
188188
};

motoko/internet_identity_integration/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ Replace the content of `src/greet_backend/main.mo` with the following:
352352
```motoko
353353
import Principal "mo:base/Principal";
354354
355-
actor {
355+
persistent actor {
356356
public query (message) func greet() : async Text {
357357
return "Hello, " # Principal.toText(message.caller) # "!";
358358
};

motoko/nft-creator/backend/app.mo

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ import ClassPlus "mo:class-plus";
1515
import 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 = {

motoko/token_transfer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ import Debug "mo:base/Debug";
163163
import Result "mo:base/Result";
164164
import Error "mo:base/Error";
165165

166-
actor {
166+
persistent actor {
167167

168168
type TransferArgs = {
169169
amount : Nat;

motoko/token_transfer_from/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ import Debug "mo:base/Debug";
177177
import Result "mo:base/Result";
178178
import Error "mo:base/Error";
179179

180-
actor {
180+
persistent actor {
181181

182182
type TransferArgs = {
183183
amount : Nat;

native-apps/unity_ii_applink/ii_integration_dapp/src/greet_backend/main.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Principal "mo:base/Principal";
22

3-
actor {
3+
persistent actor {
44
public query (message) func greet() : async Text {
55
return "Hello, " # Principal.toText(message.caller) # "!";
66
};

native-apps/unity_ii_deeplink/ii_integration_dapp/src/greet_backend/main.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Principal "mo:base/Principal";
22

3-
actor {
3+
persistent actor {
44
public query (message) func greet() : async Text {
55
return "Hello, " # Principal.toText(message.caller) # "!";
66
};

native-apps/unity_ii_universallink/ii_integration_dapp/src/greet_backend/main.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Principal "mo:base/Principal";
22

3-
actor {
3+
persistent actor {
44
public query (message) func greet() : async Text {
55
return "Hello, " # Principal.toText(message.caller) # "!";
66
};

0 commit comments

Comments
 (0)