tx · 3qU39z3QzFRJ9DByizeE1e2siqicut3cni9962oWkr6Z
3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez: -0.00100000 Waves
2023.11.11 12:38 [2838525] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves
{
"type": 13,
"id": "3qU39z3QzFRJ9DByizeE1e2siqicut3cni9962oWkr6Z",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1699695587019,
"version": 2,
"chainId": 84,
"sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez",
"senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf",
"proofs": [
"3eV3qUCYES3g2B1rExxxXQA2aW1drCnzimtCuWVG3zvEBdNDxS2MdfeMBmzDsb1MkKm5twv7PZnYXP3Fbefn5ZaV"
],
"script": "base64:BgIECAISAAABAWkBCmhlbGxvV29ybGQABAdpbnRMaXN0CQDMCAIAAQkAzAgCAAIJAMwIAgADBQNuaWwEBmxvd2VzdAkBBXZhbHVlAQkAlwMBBQdpbnRMaXN0BAtpbmRleExvd2VzdAkBBXZhbHVlAQkAzwgCBQdpbnRMaXN0BQZsb3dlc3QJAMwIAgkBDEludGVnZXJFbnRyeQICBmxvd2VzdAUGbG93ZXN0CQDMCAIJAQxJbnRlZ2VyRW50cnkCAgtpbmRleExvd2VzdAULaW5kZXhMb3dlc3QFA25pbABMKM/N",
"height": 2838525,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2NjaMv3E2yCneMbPnZWFhcG7smveoSotxxmKasikndD6
Next: 6j3spATkA7dn7n7f4u8rcJd6EGTi13mg8SCCgxMqSYTM
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func helloWorld (name) = { |
---|
| 7 | + | func helloWorld () = { |
---|
8 | 8 | | let intList = [1, 2, 3] |
---|
9 | 9 | | let lowest = value(min(intList)) |
---|
10 | | - | let element = intList[lowest] |
---|
11 | | - | [IntegerEntry("lowest", lowest), StringEntry("element", toString(element))] |
---|
| 10 | + | let indexLowest = value(indexOf(intList, lowest)) |
---|
| 11 | + | [IntegerEntry("lowest", lowest), IntegerEntry("indexLowest", indexLowest)] |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func helloWorld (name) = { |
---|
| 7 | + | func helloWorld () = { |
---|
8 | 8 | | let intList = [1, 2, 3] |
---|
9 | 9 | | let lowest = value(min(intList)) |
---|
10 | | - | let element = intList[lowest] |
---|
11 | | - | [IntegerEntry("lowest", lowest), StringEntry("element", toString(element))] |
---|
| 10 | + | let indexLowest = value(indexOf(intList, lowest)) |
---|
| 11 | + | [IntegerEntry("lowest", lowest), IntegerEntry("indexLowest", indexLowest)] |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|