tx · Ar3H2sJ4TLB8wKZQGsxDKes1EkfphC8XQwSnwPZgLWWS
3N8oN3yLcrZHa6DcDfqE9Rz8GkzudXjnmrx: -0.01000000 Waves
2023.08.14 10:11 [2709911] smart account 3N8oN3yLcrZHa6DcDfqE9Rz8GkzudXjnmrx > SELF 0.00000000 Waves
{
"type": 13,
"id": "Ar3H2sJ4TLB8wKZQGsxDKes1EkfphC8XQwSnwPZgLWWS",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1691997137459,
"version": 2,
"chainId": 84,
"sender": "3N8oN3yLcrZHa6DcDfqE9Rz8GkzudXjnmrx",
"senderPublicKey": "81tRXAgqfPdSG8kxEMcAuyLeBBRRrzyqQLXCtCj1dpk2",
"proofs": [
"AFSeWMEZyxNfV1o2g8YdffypuWb8TEcausV9HNKenRNR7k1knc1ViALoea49bQq2gsmhUVYhoDt19BySJZ6mpTN"
],
"script": "base64:BgIKCAISBAoCCAESAAEBBHRlc3QABARsaXN0CQDMCAIJAJQKAgIBYQAACQDMCAIJAJQKAgIBYgABCQDMCAIJAJQKAgIBYwACBQNuaWwKAQNiYXICA2FjYwRuZXh0BAkkdDAxOTEyMDgFBG5leHQEAWEIBQkkdDAxOTEyMDgCXzEEAWIIBQkkdDAxOTEyMDgCXzIEAWMJAPwHBAUEdGhpcwIDZm9vCQDMCAIFAWEJAMwIAgUBYgUDbmlsBQNuaWwDCQAAAgUBYwUBYwAACQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCgACJGwFBGxpc3QKAAIkcwkAkAMBBQIkbAoABSRhY2MwAAAKAQUkZjBfMQICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkBA2JhcgIFAiRhCQCRAwIFAiRsBQIkaQoBBSRmMF8yAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQACAQIUTGlzdCBzaXplIGV4Y2VlZHMgMTAJAQUkZjBfMgIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIFBSRhY2MwAAAAAQACAAMABAAFAAYABwAIAAkACgIBaQEDZm9vAgFhAWIJAMwIAgkBDEludGVnZXJFbnRyeQIFAWEFAWIFA25pbAFpAQFhAAQBYQkBBHRlc3QAAwkAAAIFAWEFAWEFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgARkt5a",
"height": 2709911,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 9PSozigb6iG8TeV7sJkhiDtXiiqagBaRN5jn7CDmKGCX
Next: FFbUBZ9w35FxZuUvKJZ7wcUnJvBM7QnRwrtVtn7fcMDS
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | func a () = { |
---|
5 | | - | let b = [$Tuple2("a", 0), $Tuple2("b", 1), $Tuple2("c", 2)] |
---|
6 | | - | func c (d,e) = { |
---|
7 | | - | let f = e |
---|
8 | | - | let g = f._1 |
---|
9 | | - | let h = f._2 |
---|
10 | | - | let i = invoke(this, "foo", [g, h], nil) |
---|
11 | | - | if ((i == i)) |
---|
| 4 | + | func b () = { |
---|
| 5 | + | let c = [$Tuple2("a", 0), $Tuple2("b", 1), $Tuple2("c", 2)] |
---|
| 6 | + | func d (e,f) = { |
---|
| 7 | + | let g = f |
---|
| 8 | + | let h = g._1 |
---|
| 9 | + | let i = g._2 |
---|
| 10 | + | let j = invoke(this, "foo", [h, i], nil) |
---|
| 11 | + | if ((j == j)) |
---|
12 | 12 | | then 0 |
---|
13 | 13 | | else throw("Strict value is not equal to itself.") |
---|
14 | 14 | | } |
---|
15 | 15 | | |
---|
16 | | - | let j = b |
---|
17 | | - | let k = size(j) |
---|
18 | | - | let l = 0 |
---|
19 | | - | func m (n,o) = if ((o >= k)) |
---|
20 | | - | then n |
---|
21 | | - | else c(n, j[o]) |
---|
| 16 | + | let k = c |
---|
| 17 | + | let l = size(k) |
---|
| 18 | + | let m = 0 |
---|
| 19 | + | func n (o,p) = if ((p >= l)) |
---|
| 20 | + | then o |
---|
| 21 | + | else d(o, k[p]) |
---|
22 | 22 | | |
---|
23 | | - | func p (n,o) = if ((o >= k)) |
---|
24 | | - | then n |
---|
| 23 | + | func q (o,p) = if ((p >= l)) |
---|
| 24 | + | then o |
---|
25 | 25 | | else throw("List size exceeds 10") |
---|
26 | 26 | | |
---|
27 | | - | p(m(m(m(m(m(m(m(m(m(m(l, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) |
---|
| 27 | + | q(n(n(n(n(n(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) |
---|
28 | 28 | | } |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|
31 | | - | @Callable(q) |
---|
32 | | - | func foo (g,h) = [IntegerEntry(g, h)] |
---|
| 31 | + | @Callable(r) |
---|
| 32 | + | func foo (h,i) = [IntegerEntry(h, i)] |
---|
| 33 | + | |
---|
| 34 | + | |
---|
| 35 | + | |
---|
| 36 | + | @Callable(r) |
---|
| 37 | + | func a () = { |
---|
| 38 | + | let h = b() |
---|
| 39 | + | if ((h == h)) |
---|
| 40 | + | then nil |
---|
| 41 | + | else throw("Strict value is not equal to itself.") |
---|
| 42 | + | } |
---|
33 | 43 | | |
---|
34 | 44 | | |
---|