Skip to content

Commit 30e9698

Browse files
committed
Minor text fixes
1 parent 2a3a735 commit 30e9698

File tree

9 files changed

+19
-16
lines changed

9 files changed

+19
-16
lines changed

src/routes/(examples)/02-addresses/contract.tact

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ import "@stdlib/deploy";
22

33
contract Addresses with Deployable {
44

5+
// contract persistent state variables
56
// we have three representations of the same address
67
a1: Address = address("EQCD39VS5jcptHL8vMjEXrzGaRcCVYto7HUn4bpAOg8xqB2N"); // bouncable (same foundation wallet)
78
a2: Address = address("UQCD39VS5jcptHL8vMjEXrzGaRcCVYto7HUn4bpAOg8xqEBI"); // non-bounceable (same foundation wallet)
89
a3: Address;
9-
10+
1011
a4: Address;
1112
a5: Address;
1213
a6: Address;
@@ -22,8 +23,9 @@ contract Addresses with Deployable {
2223
}
2324

2425
receive("show all") {
25-
// addresses cannot currently be dumped
26-
// TODO: dump(self.a1);
26+
/// addresses cannot currently be dumped
27+
/// TODO: https://github.com/tact-lang/tact/issues/16
28+
/// dump(self.a1);
2729
}
2830

2931
receive("show ops") {

src/routes/(examples)/02-bools/contract.tact

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import "@stdlib/deploy";
22

33
contract Bools with Deployable {
44

5+
// contract persistent state variables
56
b1: Bool = true;
67
b2: Bool = false;
78
b3: Bool;

src/routes/(examples)/02-integer-ops/contract.tact

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import "@stdlib/deploy";
22

33
contract Integers with Deployable {
44

5+
// contract persistent state variables
56
i1: Int as uint128 = 3001;
67
i2: Int as int32 = 57;
78

src/routes/(examples)/02-integers/contract.tact

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import "@stdlib/deploy";
22

33
contract Integers with Deployable {
44

5+
// contract persistent state variables
56
// integers can be persisted in state in various sizes
67
i1: Int as int257 = 3001; // range -2^256 to 2^256 - 1 (takes 257 bit = 32 bytes + 1 bit)
78
i2: Int as uint256; // range 0 to 2^256 - 1 (takes 256 bit = 32 bytes)

src/routes/(examples)/02-strings/contract.tact

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import "@stdlib/deploy";
22

33
contract Strings with Deployable {
44

5+
// contract persistent state variables
56
s1: String = "hello world";
6-
s2: String = "yes unicode 😀 😅 你好 no escaping"; /// \n \t";
7+
s2: String = "yes unicode 😀 😅 你好 no escaping"; /// TODO: https://github.com/tact-lang/tact/issues/25 \n \t";
78
s3: String;
89
s4: String;
910
s5: String;
@@ -38,6 +39,7 @@ contract Strings with Deployable {
3839
let s: String = "how are you?"; // temporary variable
3940
dump(s);
4041

42+
/// TODO: https://github.com/tact-lang/tact/issues/24
4143
/// dump(self.s1 == "hello world");
4244
/// dump(self.s1 != s);
4345
}

src/routes/(examples)/03-messages-between-contracts/contract.tact

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ contract BulkAdder with Deployable {
5353
// step 2: this contract will query the current counter value from the other contract
5454
send(SendParameters{
5555
to: msg.counter,
56-
value: 0, // TODO: https://github.com/tact-lang/tact/issues/31
57-
mode: SendRemainingValue + SendIgnoreErrors, // TODO: issues/31
56+
value: 0, /// TODO: https://github.com/tact-lang/tact/issues/31
57+
mode: SendRemainingValue + SendIgnoreErrors, /// TODO: issues/31
5858
body: "query".asComment()
5959
});
6060
}
@@ -65,8 +65,8 @@ contract BulkAdder with Deployable {
6565
// step 5: if its value is too low, send it another message to increment it by +1 more
6666
send(SendParameters{
6767
to: sender(),
68-
value: 0, // TODO: same issue 31
69-
mode: SendRemainingValue + SendIgnoreErrors, // TODO: https://github.com/tact-lang/tact/issues/31
68+
value: 0, /// TODO: same issue 31
69+
mode: SendRemainingValue + SendIgnoreErrors, /// TODO: https://github.com/tact-lang/tact/issues/31
7070
body: "increment".asComment()
7171
});
7272
}

src/routes/(examples)/03-send-coins/+page.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
"withdraw all": async () => {
3737
return [await contract.send(sender, { value: toNano(1) }, "withdraw all")];
3838
},
39+
"withdraw safe": async () => {
40+
return [await contract.send(sender, { value: toNano(1) }, "withdraw safe")];
41+
},
3942
"Withdraw{1 TON}": async () => {
4043
return [await contract.send(sender, { value: toNano(1) }, { $$type: "Withdraw", amount: toNano(1) })];
4144
},

src/routes/(examples)/03-structs/+page.svelte

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
return [contract, addresses, [await contract.send(deployer.getSender(), { value: toNano(1) }, { $$type: "Deploy", queryId: 0n })]];
2727
},
2828
messages: {
29-
"show all": async () => {
30-
return [await contract.send(sender, { value: toNano(1) }, "show all")];
31-
},
3229
"show ops": async () => {
3330
return [await contract.send(sender, { value: toNano(1) }, "show ops")];
3431
},

src/routes/(examples)/03-structs/contract.tact

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ message Add {
1717

1818
contract Structs with Deployable {
1919

20+
// contract persistent state variables
2021
s1: Point;
2122
s2: Params;
2223

@@ -25,11 +26,6 @@ contract Structs with Deployable {
2526
self.s2 = Params{point: self.s1};
2627
}
2728

28-
receive("show all") {
29-
// structs cannot currently be dumped
30-
// TODO: dump(self.s1);
31-
}
32-
3329
receive("show ops") {
3430
// temporary variable
3531
let s: Point = Point{x: 4, y: 5};

0 commit comments

Comments
 (0)