tx · BnA1o6iTpfScYc53JVwpsRd5GuJiEYTK7Xb4vKLEB9V
3N5gWG3xp8iqkyaQASichLUQqCBVGgRv3RN: -0.00100000 Waves
2024.11.16 21:37 [3374377] smart account 3N5gWG3xp8iqkyaQASichLUQqCBVGgRv3RN > SELF 0.00000000 Waves
{
"type": 13,
"id": "BnA1o6iTpfScYc53JVwpsRd5GuJiEYTK7Xb4vKLEB9V",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1731782273517,
"version": 2,
"chainId": 84,
"sender": "3N5gWG3xp8iqkyaQASichLUQqCBVGgRv3RN",
"senderPublicKey": "3Qq33JqcACq2sCuxQW8NCA4SwwbL93n4XgPQCvsdDJGu",
"proofs": [
"5A7ZCuB66ZBcLUHV15Xg8kSchUZnjbCxctYXMQMGvXFG37EGDmVBNTMVH7PbKdNr6umUjtcb93ZRgWzWWyiLDpUe"
],
"script": "base64:CAIECAISAAABAWkBCWFkZEZhcm1lcgAEB2FkZHJlc3MJAKUIAQgFAWkGY2FsbGVyBAZmYXJtZXIJAJ8IAQUHYWRkcmVzcwMJAAACBQZmYXJtZXIFBHVuaXQJAMwIAgkBDEludGVnZXJFbnRyeQIFB2FkZHJlc3MAAAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFB2FkZHJlc3MCCF9wZW5kaW5nAgAFA25pbAkAAgECFUZhcm1lciBhbHJlYWR5IGV4aXN0cwCT2tf5",
"height": 3374377,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4NTAyFzbg61DokiqXY1g1AYLgXyjuzKEyukVhrQ696Tk
Next: G3uY3pL9gS81e5qk5GNYSEMa6wL72NSQu3k2A6K6ByJW
Diff:
Old | New | | Differences |
---|
9 | 9 | | let farmer = getInteger(address) |
---|
10 | 10 | | if ((farmer == unit)) |
---|
11 | 11 | | then [IntegerEntry(address, 0), StringEntry((address + "_pending"), "")] |
---|
12 | | - | else nil |
---|
| 12 | + | else throw("Farmer already exists") |
---|
13 | 13 | | } |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 8 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func addFarmer () = { |
---|
8 | 8 | | let address = toString(i.caller) |
---|
9 | 9 | | let farmer = getInteger(address) |
---|
10 | 10 | | if ((farmer == unit)) |
---|
11 | 11 | | then [IntegerEntry(address, 0), StringEntry((address + "_pending"), "")] |
---|
12 | | - | else nil |
---|
| 12 | + | else throw("Farmer already exists") |
---|
13 | 13 | | } |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|