tx · XyFBof3CxkpZM7aWXPqdCXJHCX3P8rRoHuCT49iDdhd
3NBYuiC6eFv2jT8DptUfiMDTbhXgFvn7NcK: -0.04000000 Waves
2020.10.28 21:46 [1240854] smart account 3NBYuiC6eFv2jT8DptUfiMDTbhXgFvn7NcK > SELF 0.00000000 Waves
{
"type": 13,
"id": "XyFBof3CxkpZM7aWXPqdCXJHCX3P8rRoHuCT49iDdhd",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1603910791690,
"version": 2,
"chainId": 84,
"sender": "3NBYuiC6eFv2jT8DptUfiMDTbhXgFvn7NcK",
"senderPublicKey": "BN5UNNa95ZrPJ8JGf9eweh6CLRZ618MuRsvqmxPX1yTR",
"proofs": [
"BzEsgeYfunoHh3mx3tar3TU2j7QHYVxgxwbZF7gS1tADHFiLLUTE4NdT3KjhsdJPJeaQKj5D9L2ireJHHuYaqCk"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAgEAAAAHaXNPd25lcgAAAAEAAAAHYWRkcmVzcwkAAAAAAAACBQAAAAdhZGRyZXNzBQAAAAR0aGlzAQAAAA1nZXRIYXNoQW5zd2VyAAAAAAQAAAADdmFsBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMCAAAAC2hhc2gtYW5zd2VyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWICAAAAAAUAAAADdmFsAAAAAQAAAAFpAQAAAAlhZGRBbnN3ZXIAAAABAAAABkFuc3dlcgMJAQAAAAEhAAAAAQkBAAAAB2lzT3duZXIAAAABCAUAAAABaQAAAAZjYWxsZXIJAAACAAAAAQIAAAAhYWNjZXNzIG9ubHkgYnkgdGhlIGNvbnRyYWN0IG93bmVyBAAAAApoYXNoQW5zd2VyBQAAAAZBbnN3ZXIEAAAABnJld2FyZAgJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAAAAAZhbW91bnQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAAC2hhc2gtYW5zd2VyBQAAAApoYXNoQW5zd2VyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAlhbnN3ZXJfaWQJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAApoYXNoQW5zd2VyAgAAAAdfcmV3YXJkBQAAAAZyZXdhcmQFAAAAA25pbAAAAADX/4Uf",
"height": 1240854,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: AtCWT2XhVoUxEDgXzk6v5uvnd61R3rH2aHJ3mbJRQe73
Next: CvUE4n437vNpz8WGot6YeWfEMNqVvuJ8HEb4tWYdL788
Diff:
Old | New | | Differences |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|
21 | 21 | | @Callable(g) |
---|
22 | | - | func addAnswerBase64 (h) = if (!(a(g.caller))) |
---|
| 22 | + | func addAnswer (h) = if (!(a(g.caller))) |
---|
23 | 23 | | then throw("access only by the contract owner") |
---|
24 | | - | else WriteSet([DataEntry("hash-answer", h)]) |
---|
| 24 | + | else { |
---|
| 25 | + | let i = h |
---|
| 26 | + | let j = extract(g.payment).amount |
---|
| 27 | + | WriteSet([DataEntry("hash-answer", i), DataEntry("answer_id", toBase58String(g.transactionId)), DataEntry((i + "_reward"), j)]) |
---|
| 28 | + | } |
---|
25 | 29 | | |
---|
26 | 30 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b) = (b == this) |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | 7 | | func c () = { |
---|
8 | 8 | | let d = { |
---|
9 | 9 | | let e = getString(this, "hash-answer") |
---|
10 | 10 | | if ($isInstanceOf(e, "String")) |
---|
11 | 11 | | then { |
---|
12 | 12 | | let f = e |
---|
13 | 13 | | f |
---|
14 | 14 | | } |
---|
15 | 15 | | else "" |
---|
16 | 16 | | } |
---|
17 | 17 | | d |
---|
18 | 18 | | } |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|
21 | 21 | | @Callable(g) |
---|
22 | | - | func addAnswerBase64 (h) = if (!(a(g.caller))) |
---|
| 22 | + | func addAnswer (h) = if (!(a(g.caller))) |
---|
23 | 23 | | then throw("access only by the contract owner") |
---|
24 | | - | else WriteSet([DataEntry("hash-answer", h)]) |
---|
| 24 | + | else { |
---|
| 25 | + | let i = h |
---|
| 26 | + | let j = extract(g.payment).amount |
---|
| 27 | + | WriteSet([DataEntry("hash-answer", i), DataEntry("answer_id", toBase58String(g.transactionId)), DataEntry((i + "_reward"), j)]) |
---|
| 28 | + | } |
---|
25 | 29 | | |
---|
26 | 30 | | |
---|