tx · QrJiCAKr8FXzUMchjXA5z1WJaCqX6c2bvQ6hG1wANL9

3N7pSjP7r8aY9kYSi61ucLbWnm2waE6PcaA:  -0.01400000 Waves

2019.11.12 22:06 [762244] smart account 3N7pSjP7r8aY9kYSi61ucLbWnm2waE6PcaA > SELF 0.00000000 Waves

{ "type": 13, "id": "QrJiCAKr8FXzUMchjXA5z1WJaCqX6c2bvQ6hG1wANL9", "fee": 1400000, "feeAssetId": null, "timestamp": 1573585675233, "version": 1, "sender": "3N7pSjP7r8aY9kYSi61ucLbWnm2waE6PcaA", "senderPublicKey": "8wiXMdZVbTSwMFxqoW7jfgropja3bTT7MX8VuQwPwPje", "proofs": [ "5szHfUi7VsYd8QVFEFSV8gzJwbAoWCQAKQuYQjZTBqjQNEsmG6DEgqpHTzqYB7JAUaYJsYyZnCy7CKRCib9sEU5g" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAQAAAAAJYm9iUHViS2V5AQAAACB2Bh9wCLRIMXfN6pGVp7kXGPgb/W3ZCDeZxa5F5MOaEQAAAAEAAAABaQEAAAAIcHVyY2hhc2UAAAAABAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAgY2FuIHVzZSBXQVZFUyBvbmx5IGF0IHRoZSBtb21lbnQEAAAAD2N1c3RvbWVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVwcmljZQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAABNpdGVtX0FfY291cG9uX3ByaWNlAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAADCQAAZgAAAAIFAAAABXByaWNlCAUAAAADcG10AAAABmFtb3VudAkAAAIAAAABAgAAAC5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cWDh45Ao Diff:
OldNewDifferences
3939 else if ($isInstanceOf(f, "DataTransaction"))
4040 then {
4141 let j = f
42- sigVerify(h.proofs[0], h.bodyBytes, a)
42+ sigVerify(h.bodyBytes, h.proofs[0], a)
4343 }
4444 else false
4545 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'8wiXMdZVbTSwMFxqoW7jfgropja3bTT7MX8VuQwPwPje'
55
66 @Callable(b)
77 func purchase () = {
88 let c = extract(b.payment)
99 if (isDefined(c.assetId))
1010 then throw("can use WAVES only at the moment")
1111 else {
1212 let d = toBase58String(b.caller.bytes)
1313 let e = {
1414 let f = getInteger(this, "item_A_coupon_price")
1515 if ($isInstanceOf(f, "Int"))
1616 then {
1717 let g = f
1818 g
1919 }
2020 else 0
2121 }
2222 if ((e > c.amount))
2323 then throw("purchase amount cannot be less than item price")
2424 else if ((c.amount > e))
2525 then throw("purchase amount cannot be higher than item price")
2626 else WriteSet([DataEntry(("status:purchase_item_A_customer" + d), "confirmed"), DataEntry(("price:purchase_item_A_customer" + d), e)])
2727 }
2828 }
2929
3030
3131 @Verifier(h)
3232 func i () = {
3333 let f = h
3434 if ($isInstanceOf(f, "SetScriptTransaction"))
3535 then {
3636 let j = f
3737 sigVerify(h.bodyBytes, h.proofs[0], a)
3838 }
3939 else if ($isInstanceOf(f, "DataTransaction"))
4040 then {
4141 let j = f
42- sigVerify(h.proofs[0], h.bodyBytes, a)
42+ sigVerify(h.bodyBytes, h.proofs[0], a)
4343 }
4444 else false
4545 }
4646

github/deemru/w8io/169f3d6 
32.77 ms