tx · 4gToKbsJEKEGMMreUjCt2doApnvAthjzUwF6aT8tw6YC

3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7:  -0.01400000 Waves

2021.08.02 17:19 [1640827] smart account 3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7 > SELF 0.00000000 Waves

{ "type": 13, "id": "4gToKbsJEKEGMMreUjCt2doApnvAthjzUwF6aT8tw6YC", "fee": 1400000, "feeAssetId": null, "timestamp": 1627914095300, "version": 2, "chainId": 84, "sender": "3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7", "senderPublicKey": "3tp5fNYyPi4jMnkf6s1k4kBqvJ7nm57SxzvLyi8RkxT2", "proofs": [ "4LEDjjYgMoEj3UdEbqKeT36dnxa9faPkbD5iRkPcdoiA9MhU7ojxXHCqBW7TC4jRvmyrd6anja79s1PgEx6B8EjX" ], "script": "base64:AAIEAAAAAAAAADoIAhIDCgEIEgYKBAgBCAESBwoFCAgBCAESAwoBCBIDCgEIEgMKAQgSBAoCCAgSBAoCCAgSBQoDCAgIAAAAOAAAAAAETk9ORQIAAAAETk9ORQAAAAAGVk9URVJTAAAAAAAAAAADAAAAAAZRVU9SVU0AAAAAAAAAAAIAAAAACEZFQVRVUkVEAgAAAAhmZWF0dXJlZAAAAAAIREVMSVNURUQCAAAACGRlbGlzdGVkAAAAAAZWT1RJTkcCAAAABnZvdGluZwAAAAAGUkVWRUFMAgAAAAZyZXZlYWwAAAAACEFQUFJPVkFMAgAAAAhhcHByb3ZhbAAAAAAIUkVKRUNURUQCAAAACHJlamVjdGVkAAAAAAhBQ0NFUFRFRAIAAAAIYWNjZXB0ZWQBAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUBAAAAD2dldEludG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zQ291bnQAAAACBQAAAARpdGVtBQAAAAR1c2VyBQAAAA1uZXdWb3Rlc0NvdW50CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAABBnZXRLZXlJdGVtU3RhdHVzAAAAAQUAAAAEaXRlbQUAAAAJbmV3U3RhdHVzBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABBJc3N1ZVRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkH6PlXSg==", "height": 1640827, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ErLZKPsS2yFuuFFBBLKyibzhrzBoPbCigYLrABfrnhr9 Next: 8kE6jpJGwLU2848SwtVhDrXhMCa7K5mY6WUSpf98YY24 Diff:
OldNewDifferences
115115 func U (P) = (P + "_timestamp")
116116
117117
118-func V (W) = ("coupon_" + W)
118+func V (P) = (P + "_assetId")
119119
120120
121-func X (Y) = (Y + "_item")
121+func W (X) = (("coupon_" + X) + "_purchase")
122122
123123
124-func Z (t) = o(K(t))
124+func Y (t) = o(K(t))
125125
126126
127-func aa (E,x) = o(L(E, x))
127+func Z (E,x) = o(L(E, x))
128128
129129
130-func ab (P) = k(O(P))
130+func aa (P) = k(O(P))
131131
132132
133-func ac (P) = getStringValue(this, Q(P))
133+func ab (P) = getStringValue(this, Q(P))
134134
135135
136-func ad (P) = getStringValue(this, R(P))
136+func ac (P) = getStringValue(this, R(P))
137137
138138
139-func ae (P) = getStringValue(this, S(P))
139+func ad (P) = getStringValue(this, S(P))
140140
141141
142-func af (P) = getIntegerValue(this, T(P))
142+func ae (P) = getIntegerValue(this, T(P))
143143
144144
145-func ag (P) = o(U(P))
145+func af (P) = o(U(P))
146+
147+
148+func ag (P) = k(V(P))
146149
147150
148151 func ah (x) = getIntegerValue(this, z(x))
256259 then throw("Supplier does not exists")
257260 else {
258261 let ax = L(E, x)
259- let ay = (aa(E, x) + 1)
262+ let ay = (Z(E, x) + 1)
260263 let P = M(t, x, E, ay)
261264 let az = O(P)
262265 let aA = Q(P)
274277 @Callable(ar)
275278 func rejectPurchase (P) = {
276279 let aF = toBase58String(ar.caller.bytes)
277- let aG = ab(P)
278- let t = ad(P)
279- let x = ac(P)
280+ let aG = aa(P)
281+ let t = ac(P)
282+ let x = ab(P)
280283 if (if ((t == a))
281284 then true
282285 else (aF != t))
288291 let aD = T(P)
289292 let aH = K(t)
290293 let aI = C(x)
291- let E = ae(P)
292- let aJ = af(P)
293- let aK = (Z(t) - aJ)
294+ let E = ad(P)
295+ let aJ = ae(P)
296+ let aK = (Y(t) - aJ)
294297 let aL = (al(x) - 1)
295298 let aM = addressFromStringValue(E)
296299 [StringEntry(az, i), IntegerEntry(aD, 0), ScriptTransfer(aM, aJ, unit)]
300303
301304
302305 @Callable(ar)
303-func acceptPurchase (P) = {
306+func acceptPurchase (P,aN) = {
304307 let aF = toBase58String(ar.caller.bytes)
305- let aG = ab(P)
306- let t = ad(P)
307- let x = ac(P)
308+ let aG = aa(P)
309+ let t = ac(P)
310+ let x = ab(P)
308311 let au = aj(x)
309312 if (if ((t == a))
310313 then true
318321 then throw("Coupon expired")
319322 else {
320323 let az = O(P)
324+ let aO = V(P)
321325 let aH = K(t)
322326 let aI = C(x)
323- let aJ = af(P)
324- let aK = (Z(t) + aJ)
327+ let aP = W(aN)
328+ let aJ = ae(P)
329+ let aK = (Y(t) + aJ)
325330 let aL = (al(x) + 1)
326- let E = ae(P)
331+ let E = ad(P)
327332 let aM = addressFromStringValue(E)
328-[IntegerEntry(aH, aK), IntegerEntry(aI, aL)]
333+[StringEntry(aP, P), StringEntry(aO, aN), IntegerEntry(aH, aK), IntegerEntry(aI, aL)]
329334 }
330335 }
331336
332337
333338
334339 @Callable(ar)
335-func voteCommit (x,aN) = {
340+func voteCommit (x,aQ) = {
336341 let E = toBase58String(ar.caller.bytes)
337- let aO = an(x)
342+ let aR = an(x)
338343 let aG = ap(x)
339- if ((aO >= b))
344+ if ((aR >= b))
340345 then throw("Reached max number of voters")
341346 else if ((am(x, E) != a))
342347 then throw("You voted already")
347352 else false)
348353 then throw("Voting is not active for this item now")
349354 else {
350- let aP = if ((aO == b))
355+ let aS = if ((aR == b))
351356 then g
352357 else f
353-[StringEntry(D(x, E), aN), IntegerEntry(F(x), (aO + 1)), StringEntry(H(x), aP)]
358+[StringEntry(D(x, E), aQ), IntegerEntry(F(x), (aR + 1)), StringEntry(H(x), aS)]
354359 }
355360 }
356361
357362
358363
359364 @Callable(ar)
360-func voteReveal (x,J,aQ) = {
365+func voteReveal (x,J,aT) = {
361366 let E = toBase58String(ar.caller.bytes)
362367 let aG = ap(x)
363- let aR = (aq(x, J) + 1)
364- let aS = toBase58String(sha256(toBytes(((x + J) + aQ))))
365- if ((aS != am(x, E)))
368+ let aU = (aq(x, J) + 1)
369+ let aV = toBase58String(sha256(toBytes(((x + J) + aT))))
370+ if ((aV != am(x, E)))
366371 then throw("Reveal data is not valid")
367372 else if ((b > an(x)))
368373 then throw("Max number of voters not reached")
377382 else false)
378383 then throw("Provided voting option is incorrect")
379384 else {
380- let aP = if ((aR >= c))
385+ let aS = if ((aU >= c))
381386 then J
382387 else g
383-[StringEntry(G(x, E), J), IntegerEntry(I(x, E), aR), StringEntry(H(x), aP)]
388+[StringEntry(G(x, E), J), IntegerEntry(I(x, E), aU), StringEntry(H(x), aS)]
384389 }
385390 }
386391
387392
388-@Verifier(aT)
389-func aU () = {
390- let m = aT
393+@Verifier(aW)
394+func aX () = {
395+ let m = aW
391396 if ($isInstanceOf(m, "SetScriptTransaction"))
392397 then {
393- let aV = m
394- sigVerify(aT.bodyBytes, aT.proofs[0], aT.senderPublicKey)
398+ let aY = m
399+ sigVerify(aW.bodyBytes, aW.proofs[0], aW.senderPublicKey)
395400 }
396401 else if ($isInstanceOf(m, "IssueTransaction"))
397402 then {
398- let aV = m
399- sigVerify(aT.bodyBytes, aT.proofs[0], aT.senderPublicKey)
403+ let aY = m
404+ sigVerify(aW.bodyBytes, aW.proofs[0], aW.senderPublicKey)
400405 }
401406 else if ($isInstanceOf(m, "TransferTransaction"))
402407 then {
403- let aV = m
404- sigVerify(aT.bodyBytes, aT.proofs[0], aT.senderPublicKey)
408+ let aY = m
409+ sigVerify(aW.bodyBytes, aW.proofs[0], aW.senderPublicKey)
405410 }
406411 else false
407412 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "NONE"
55
66 let b = 3
77
88 let c = 2
99
1010 let d = "featured"
1111
1212 let e = "delisted"
1313
1414 let f = "voting"
1515
1616 let g = "reveal"
1717
1818 let h = "approval"
1919
2020 let i = "rejected"
2121
2222 let j = "accepted"
2323
2424 func k (l) = {
2525 let m = getString(this, l)
2626 if ($isInstanceOf(m, "String"))
2727 then {
2828 let n = m
2929 n
3030 }
3131 else a
3232 }
3333
3434
3535 func o (l) = {
3636 let m = getInteger(this, l)
3737 if ($isInstanceOf(m, "Int"))
3838 then {
3939 let n = m
4040 n
4141 }
4242 else 0
4343 }
4444
4545
4646 func p (q) = (q + "_account")
4747
4848
4949 func r (q) = k(p(q))
5050
5151
5252 func s (t,u) = {
5353 let v = (t + u)
5454 ("item_" + toBase58String(sha256(toBytes(v))))
5555 }
5656
5757
5858 func w (x) = (x + "_owner")
5959
6060
6161 func y (x) = (x + "_title")
6262
6363
6464 func z (x) = (x + "_price")
6565
6666
6767 func A (x) = (x + "_data")
6868
6969
7070 func B (x) = (x + "_expiredate")
7171
7272
7373 func C (x) = (x + "_sold")
7474
7575
7676 func D (x,E) = (((x + "_") + E) + "_commit")
7777
7878
7979 func F (x) = (x + "_cmtcnt")
8080
8181
8282 func G (x,E) = (((x + "_") + E) + "_reveal")
8383
8484
8585 func H (x) = (x + "_status")
8686
8787
8888 func I (x,J) = ((x + "_res:") + J)
8989
9090
9191 func K (t) = (t + "_balance")
9292
9393
9494 func L (E,x) = (((E + "_") + x) + "_counter")
9595
9696
9797 func M (t,x,E,N) = ("purchase_" + toBase58String(sha256(toBytes(((((((t + "_") + x) + "_") + E) + "_") + toString(N))))))
9898
9999
100100 func O (P) = (P + "_status")
101101
102102
103103 func Q (P) = (P + "_item")
104104
105105
106106 func R (P) = (P + "_supplier")
107107
108108
109109 func S (P) = (P + "_user")
110110
111111
112112 func T (P) = (P + "_amount")
113113
114114
115115 func U (P) = (P + "_timestamp")
116116
117117
118-func V (W) = ("coupon_" + W)
118+func V (P) = (P + "_assetId")
119119
120120
121-func X (Y) = (Y + "_item")
121+func W (X) = (("coupon_" + X) + "_purchase")
122122
123123
124-func Z (t) = o(K(t))
124+func Y (t) = o(K(t))
125125
126126
127-func aa (E,x) = o(L(E, x))
127+func Z (E,x) = o(L(E, x))
128128
129129
130-func ab (P) = k(O(P))
130+func aa (P) = k(O(P))
131131
132132
133-func ac (P) = getStringValue(this, Q(P))
133+func ab (P) = getStringValue(this, Q(P))
134134
135135
136-func ad (P) = getStringValue(this, R(P))
136+func ac (P) = getStringValue(this, R(P))
137137
138138
139-func ae (P) = getStringValue(this, S(P))
139+func ad (P) = getStringValue(this, S(P))
140140
141141
142-func af (P) = getIntegerValue(this, T(P))
142+func ae (P) = getIntegerValue(this, T(P))
143143
144144
145-func ag (P) = o(U(P))
145+func af (P) = o(U(P))
146+
147+
148+func ag (P) = k(V(P))
146149
147150
148151 func ah (x) = getIntegerValue(this, z(x))
149152
150153
151154 func ai (x) = k(w(x))
152155
153156
154157 func aj (x) = o(B(x))
155158
156159
157160 func ak (x) = k(y(x))
158161
159162
160163 func al (x) = o(C(x))
161164
162165
163166 func am (x,E) = k(D(x, E))
164167
165168
166169 func an (x) = o(F(x))
167170
168171
169172 func ao (x,E) = k(G(x, E))
170173
171174
172175 func ap (x) = k(H(x))
173176
174177
175178 func aq (x,J) = o(I(x, J))
176179
177180
178181 @Callable(ar)
179182 func registerSupplier (as) = {
180183 let t = toBase58String(ar.caller.bytes)
181184 let q = r(t)
182185 if ((q != a))
183186 then throw("This address has already registred as supplier")
184187 else [StringEntry(p(t), as)]
185188 }
186189
187190
188191
189192 @Callable(ar)
190193 func addItem (u,at,as,au) = {
191194 let t = toBase58String(ar.caller.bytes)
192195 let q = r(t)
193196 let x = s(t, u)
194197 if ((q == a))
195198 then throw("You should register as supplier to add an item")
196199 else if ((0 >= at))
197200 then throw("Purchase amount cannot be less than item price")
198201 else if ((ai(x) != a))
199202 then throw("An item already exists")
200203 else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), at), StringEntry(A(x), as), IntegerEntry(B(x), au)]
201204 }
202205
203206
204207
205208 @Callable(ar)
206209 func updateItem (x,u,at,as,au) = {
207210 let t = toBase58String(ar.caller.bytes)
208211 let q = r(t)
209212 let av = ai(x)
210213 if ((q == a))
211214 then throw("You should register as supplier to remove an item")
212215 else if (if ((x == a))
213216 then true
214217 else (t != av))
215218 then throw(("You don't owned item " + x))
216219 else [StringEntry(y(x), u), IntegerEntry(z(x), at), StringEntry(A(x), as), IntegerEntry(B(x), au)]
217220 }
218221
219222
220223
221224 @Callable(ar)
222225 func removeItem (x) = {
223226 let t = toBase58String(ar.caller.bytes)
224227 let q = r(t)
225228 let av = ai(x)
226229 if ((q == a))
227230 then throw("You should register as supplier to remove an item")
228231 else if (if ((x == a))
229232 then true
230233 else (t != av))
231234 then throw(("You don't owned item " + x))
232235 else [DeleteEntry(w(x)), DeleteEntry(y(x)), DeleteEntry(z(x)), DeleteEntry(A(x)), DeleteEntry(B(x))]
233236 }
234237
235238
236239
237240 @Callable(ar)
238241 func purchase (x) = {
239242 let aw = ar.payments[0]
240243 if (isDefined(aw.assetId))
241244 then throw("You can buy tokens only with Waves tokens")
242245 else {
243246 let E = toBase58String(ar.caller.bytes)
244247 let at = ah(x)
245248 let t = ai(x)
246249 let au = aj(x)
247250 if (if ((au > 0))
248251 then (lastBlock.timestamp >= au)
249252 else false)
250253 then throw("Coupon expired")
251254 else if ((at > aw.amount))
252255 then throw("Purchase amount cannot be less than item price")
253256 else if ((aw.amount > at))
254257 then throw("Purchase amount cannot be higher than item price")
255258 else if ((t == a))
256259 then throw("Supplier does not exists")
257260 else {
258261 let ax = L(E, x)
259- let ay = (aa(E, x) + 1)
262+ let ay = (Z(E, x) + 1)
260263 let P = M(t, x, E, ay)
261264 let az = O(P)
262265 let aA = Q(P)
263266 let aB = R(P)
264267 let aC = S(P)
265268 let aD = T(P)
266269 let aE = U(P)
267270 [IntegerEntry(ax, ay), StringEntry(az, h), StringEntry(aA, x), StringEntry(aB, t), StringEntry(aC, E), IntegerEntry(aD, aw.amount), IntegerEntry(aE, lastBlock.timestamp)]
268271 }
269272 }
270273 }
271274
272275
273276
274277 @Callable(ar)
275278 func rejectPurchase (P) = {
276279 let aF = toBase58String(ar.caller.bytes)
277- let aG = ab(P)
278- let t = ad(P)
279- let x = ac(P)
280+ let aG = aa(P)
281+ let t = ac(P)
282+ let x = ab(P)
280283 if (if ((t == a))
281284 then true
282285 else (aF != t))
283286 then throw("Your are not the owner of this item")
284287 else if ((aG != h))
285288 then throw("You cannot reject this purchased")
286289 else {
287290 let az = O(P)
288291 let aD = T(P)
289292 let aH = K(t)
290293 let aI = C(x)
291- let E = ae(P)
292- let aJ = af(P)
293- let aK = (Z(t) - aJ)
294+ let E = ad(P)
295+ let aJ = ae(P)
296+ let aK = (Y(t) - aJ)
294297 let aL = (al(x) - 1)
295298 let aM = addressFromStringValue(E)
296299 [StringEntry(az, i), IntegerEntry(aD, 0), ScriptTransfer(aM, aJ, unit)]
297300 }
298301 }
299302
300303
301304
302305 @Callable(ar)
303-func acceptPurchase (P) = {
306+func acceptPurchase (P,aN) = {
304307 let aF = toBase58String(ar.caller.bytes)
305- let aG = ab(P)
306- let t = ad(P)
307- let x = ac(P)
308+ let aG = aa(P)
309+ let t = ac(P)
310+ let x = ab(P)
308311 let au = aj(x)
309312 if (if ((t == a))
310313 then true
311314 else (aF != t))
312315 then throw("Your are not the owner of this item")
313316 else if ((aG != h))
314317 then throw("You cannot reject this purchased")
315318 else if (if ((au > 0))
316319 then (lastBlock.timestamp >= au)
317320 else false)
318321 then throw("Coupon expired")
319322 else {
320323 let az = O(P)
324+ let aO = V(P)
321325 let aH = K(t)
322326 let aI = C(x)
323- let aJ = af(P)
324- let aK = (Z(t) + aJ)
327+ let aP = W(aN)
328+ let aJ = ae(P)
329+ let aK = (Y(t) + aJ)
325330 let aL = (al(x) + 1)
326- let E = ae(P)
331+ let E = ad(P)
327332 let aM = addressFromStringValue(E)
328-[IntegerEntry(aH, aK), IntegerEntry(aI, aL)]
333+[StringEntry(aP, P), StringEntry(aO, aN), IntegerEntry(aH, aK), IntegerEntry(aI, aL)]
329334 }
330335 }
331336
332337
333338
334339 @Callable(ar)
335-func voteCommit (x,aN) = {
340+func voteCommit (x,aQ) = {
336341 let E = toBase58String(ar.caller.bytes)
337- let aO = an(x)
342+ let aR = an(x)
338343 let aG = ap(x)
339- if ((aO >= b))
344+ if ((aR >= b))
340345 then throw("Reached max number of voters")
341346 else if ((am(x, E) != a))
342347 then throw("You voted already")
343348 else if ((w(x) == a))
344349 then throw("Item does not exists")
345350 else if (if ((aG != a))
346351 then (aG != f)
347352 else false)
348353 then throw("Voting is not active for this item now")
349354 else {
350- let aP = if ((aO == b))
355+ let aS = if ((aR == b))
351356 then g
352357 else f
353-[StringEntry(D(x, E), aN), IntegerEntry(F(x), (aO + 1)), StringEntry(H(x), aP)]
358+[StringEntry(D(x, E), aQ), IntegerEntry(F(x), (aR + 1)), StringEntry(H(x), aS)]
354359 }
355360 }
356361
357362
358363
359364 @Callable(ar)
360-func voteReveal (x,J,aQ) = {
365+func voteReveal (x,J,aT) = {
361366 let E = toBase58String(ar.caller.bytes)
362367 let aG = ap(x)
363- let aR = (aq(x, J) + 1)
364- let aS = toBase58String(sha256(toBytes(((x + J) + aQ))))
365- if ((aS != am(x, E)))
368+ let aU = (aq(x, J) + 1)
369+ let aV = toBase58String(sha256(toBytes(((x + J) + aT))))
370+ if ((aV != am(x, E)))
366371 then throw("Reveal data is not valid")
367372 else if ((b > an(x)))
368373 then throw("Max number of voters not reached")
369374 else if ((ao(x, E) != a))
370375 then throw("You voted already")
371376 else if (if ((aG != f))
372377 then (aG != g)
373378 else false)
374379 then throw("Voting is not active for this item now")
375380 else if (if ((J != d))
376381 then (J != e)
377382 else false)
378383 then throw("Provided voting option is incorrect")
379384 else {
380- let aP = if ((aR >= c))
385+ let aS = if ((aU >= c))
381386 then J
382387 else g
383-[StringEntry(G(x, E), J), IntegerEntry(I(x, E), aR), StringEntry(H(x), aP)]
388+[StringEntry(G(x, E), J), IntegerEntry(I(x, E), aU), StringEntry(H(x), aS)]
384389 }
385390 }
386391
387392
388-@Verifier(aT)
389-func aU () = {
390- let m = aT
393+@Verifier(aW)
394+func aX () = {
395+ let m = aW
391396 if ($isInstanceOf(m, "SetScriptTransaction"))
392397 then {
393- let aV = m
394- sigVerify(aT.bodyBytes, aT.proofs[0], aT.senderPublicKey)
398+ let aY = m
399+ sigVerify(aW.bodyBytes, aW.proofs[0], aW.senderPublicKey)
395400 }
396401 else if ($isInstanceOf(m, "IssueTransaction"))
397402 then {
398- let aV = m
399- sigVerify(aT.bodyBytes, aT.proofs[0], aT.senderPublicKey)
403+ let aY = m
404+ sigVerify(aW.bodyBytes, aW.proofs[0], aW.senderPublicKey)
400405 }
401406 else if ($isInstanceOf(m, "TransferTransaction"))
402407 then {
403- let aV = m
404- sigVerify(aT.bodyBytes, aT.proofs[0], aT.senderPublicKey)
408+ let aY = m
409+ sigVerify(aW.bodyBytes, aW.proofs[0], aW.senderPublicKey)
405410 }
406411 else false
407412 }
408413

github/deemru/w8io/026f985 
71.31 ms