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:
OldNewDifferences
1919
2020
2121 @Callable(g)
22-func addAnswerBase64 (h) = if (!(a(g.caller)))
22+func addAnswer (h) = if (!(a(g.caller)))
2323 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+ }
2529
2630
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = (b == this)
55
66
77 func c () = {
88 let d = {
99 let e = getString(this, "hash-answer")
1010 if ($isInstanceOf(e, "String"))
1111 then {
1212 let f = e
1313 f
1414 }
1515 else ""
1616 }
1717 d
1818 }
1919
2020
2121 @Callable(g)
22-func addAnswerBase64 (h) = if (!(a(g.caller)))
22+func addAnswer (h) = if (!(a(g.caller)))
2323 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+ }
2529
2630

github/deemru/w8io/169f3d6 
22.28 ms