File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
basic_bitcoin/src/basic_bitcoin/src
low_wasm_memory/src/low_wasm_memory_hook Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ persistent actor class BasicBitcoin(network : Types.Network) {
2727 // / When developing locally this should be `regtest`.
2828 // / When deploying to the IC this should be `testnet`.
2929 // / `mainnet` is currently unsupported.
30- stable let NETWORK : Network = network;
30+ let NETWORK : Network = network;
3131
3232 // / The derivation path to use for ECDSA secp256k1 or Schnorr BIP340/BIP341 key
3333 // / derivation.
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ persistent actor class Bucket(n : Nat, i : Nat) {
66 type Key = Nat ;
77 type Value = Text ;
88
9- let map = Map . RBTree < Key , Value > (Nat . compare);
9+ transient let map = Map . RBTree < Key , Value > (Nat . compare);
1010
1111 public func get(k : Key ) : async ?Value {
1212 assert ((k % n) == i);
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ persistent actor class Bucket(n : Nat, i : Nat) {
66 type Key = Nat ;
77 type Value = Text ;
88
9- let map = Map . RBTree < Key , Value > (Nat . compare);
9+ transient let map = Map . RBTree < Key , Value > (Nat . compare);
1010
1111 public query func get(k : Key ) : async ?Value {
1212 assert ((k % n) == i);
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ persistent actor {
1010 };
1111
1212 // State
13- var fnOrderBuffer = Buffer . Buffer < FnType > (30 );
14- var bytes : Deque . Deque < [Nat ]> = Deque . empty();
15- var hookExecuted : Bool = false ;
13+ transient var fnOrderBuffer = Buffer . Buffer < FnType > (30 );
14+ transient var bytes : Deque . Deque < [Nat ]> = Deque . empty();
15+ transient var hookExecuted : Bool = false ;
1616
1717 // Query function to get execution order
1818 public query func getExecutedFunctionsOrder() : async [FnType ] {
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ persistent actor class Tokenmania() = this {
217217
218218 Principal . equal(lhs. owner, rhs. owner) and Blob . equal(
219219 lhsSubaccount,
220- rhsSubaccount
220+ rhsSubaccount,
221221 );
222222 };
223223
@@ -390,11 +390,11 @@ persistent actor class Tokenmania() = this {
390390 };
391391
392392 // The list of all transactions.
393- var log : TxLog = makeGenesisChain();
393+ transient var log : TxLog = makeGenesisChain();
394394
395395 // The stable representation of the transaction log.
396396 // Used only during upgrades.
397- stable var persistedLog : [Transaction ] = [];
397+ var persistedLog : [Transaction ] = [];
398398
399399 system func preupgrade() {
400400 persistedLog := log. toArray();
@@ -557,7 +557,7 @@ persistent actor class Tokenmania() = this {
557557 {
558558 name = "ICRC-2" ;
559559 url = "https://github.com/dfinity/ICRC-1/tree/main/standards/ICRC-2" ;
560- }
560+ },
561561 ];
562562 };
563563
You can’t perform that action at this time.
0 commit comments