tx · DoYfbVnd18zL3fuDw7J6tTcexT4pxAD8WPNkF765HopW 3MxJx6npysQdoyyxLsCCb3Yg8fTeH3gEQQd: -0.01100000 Waves 2023.12.13 07:02 [2884437] smart account 3MxJx6npysQdoyyxLsCCb3Yg8fTeH3gEQQd > SELF 0.00000000 Waves
{ "type": 13, "id": "DoYfbVnd18zL3fuDw7J6tTcexT4pxAD8WPNkF765HopW", "fee": 1100000, "feeAssetId": null, "timestamp": 1702440168074, "version": 2, "chainId": 84, "sender": "3MxJx6npysQdoyyxLsCCb3Yg8fTeH3gEQQd", "senderPublicKey": "EEhsp9Jd5MwVmYJMGAZJL3tTb5KcurTz8Aw7wksZuw3e", "proofs": [ "4b1aHDhTkUrXuwwJoceiSEqYRpioexRD9eTP5piKNmy4uSMXsDcoohFiWw5ZoSh4EmTXZmLW9iRDPRBwa9TucCmA" ], "script": "base64:AAIDAAAAAAAAACYIARIDCgEIEgASABIAEgMKAQESBQoDCAEIEgQKAggIEgASAwoBAQAAACIAAAAACmFjYzFQdWJLZXkBAAAAINoqzDs5WpVhYDTUvUDFMunBHoYto6DfGaP0KadDFYl5AAAAAAphY2MyUHViS2V5AQAAACDEqrME/jjBGs4Mrxcvf2rYimlLp6n4e/JFPZGNpxSDUQAAAAAKYWNjM1B1YktleQEAAAAgUNvEPKDCChp09z9n6F1NbPXldSbE9+5rrmMBqTTu7wMAAAAABHdFVVIBAAAAILp8b478B1VT8fhpSbATyQBoC/hLJWa+1+vvX3GNeNSQAAAAAAROT05FAgAAAARub25lAAAAAAdCQUxBTkNFAgAAAAhiYWxhbmNlXwAAAAAGVk9URVJTAAAAAAAAAAADAAAAAAZRVU9SVU0AAAAAAAAAAAIAAAAABlZPVElORwIAAAAGdm90aW5nAAAAAAZSRVZFQUwCAAAABnJldmVhbAAAAAAIRkVBVFVSRUQCAAAACGZlYXR1cmVkAAAAAAhERUxJU1RFRAIAAAAIZGVsaXN0ZWQBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZ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AAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAEElzc3VlVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQdoCUZT", "height": 2884437, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 576cyK2GGuxkAgZi5F8P78aX2wnkyf1ASVyz34ayhiES Next: 2FRBiyTvta9gN1cfo8PW6RAc4JcziyLSnMJ9DeXYPdyW Diff:
Old | New | Differences | |
---|---|---|---|
375 | 375 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
376 | 376 | case d: BurnTransaction => | |
377 | 377 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
378 | + | case d: SetAssetScriptTransaction => | |
379 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
378 | 380 | case _ => | |
379 | 381 | false | |
380 | 382 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let acc1PubKey = base58'FgdjGJ4tLFiavKEKf4WkWwkgvU8ARWP1WYZfmUrXo4CY' | |
5 | 5 | ||
6 | 6 | let acc2PubKey = base58'EEhsp9Jd5MwVmYJMGAZJL3tTb5KcurTz8Aw7wksZuw3e' | |
7 | 7 | ||
8 | 8 | let acc3PubKey = base58'6SdykacJeMCbeNvVJY71gWMJeXt9ZT44X4KexwZxHEYz' | |
9 | 9 | ||
10 | 10 | let wEUR = base58'DYxtEoj6wasUX8ddENeh7igtcuAv1WG7BcgZVsmzvAGF' | |
11 | 11 | ||
12 | 12 | let NONE = "none" | |
13 | 13 | ||
14 | 14 | let BALANCE = "balance_" | |
15 | 15 | ||
16 | 16 | let VOTERS = 3 | |
17 | 17 | ||
18 | 18 | let QUORUM = 2 | |
19 | 19 | ||
20 | 20 | let VOTING = "voting" | |
21 | 21 | ||
22 | 22 | let REVEAL = "reveal" | |
23 | 23 | ||
24 | 24 | let FEATURED = "featured" | |
25 | 25 | ||
26 | 26 | let DELISTED = "delisted" | |
27 | 27 | ||
28 | 28 | func getNumberByKey (key) = { | |
29 | 29 | let num = match getInteger(this, key) { | |
30 | 30 | case a: Int => | |
31 | 31 | a | |
32 | 32 | case _ => | |
33 | 33 | 0 | |
34 | 34 | } | |
35 | 35 | num | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func getStrByKey (key) = { | |
40 | 40 | let str = match getString(this, key) { | |
41 | 41 | case a: String => | |
42 | 42 | a | |
43 | 43 | case _ => | |
44 | 44 | NONE | |
45 | 45 | } | |
46 | 46 | str | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func getKeyItemPrice (item) = (item + "_price") | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func getValueItemPrice (item) = getNumberByKey(getKeyItemPrice(item)) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func getKeyUserItemCounter (user,item) = (((item + "_") + user) + "_cnt") | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item)) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func getKeyItem (supplier,title) = ("item_" + toBase58String(sha256(toBytes((supplier + title))))) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func getKeyItemData (item) = (item + "_data") | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func getKeyItemSupplier (item) = (item + "_owner") | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func getValueItemSupplier (item) = getStrByKey(getKeyItemSupplier(item)) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func getKeyBalanceSupplier (account) = (account + "_balance") | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func getValueBalanceSupplier (account) = getNumberByKey(getKeyBalanceSupplier(account)) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func getKeyCommit (item,user) = (((item + "_") + user) + "_commit") | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func getValueCommit (item,user) = getStrByKey(getKeyCommit(item, user)) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func getKeyCommitsCount (item) = (item + "_comcnt") | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func getValueCommitsCount (item) = getNumberByKey(getKeyCommitsCount(item)) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func getKeyReveal (item,user) = (((item + "_") + user) + "_reveal") | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func getValueReveal (item,user) = getStrByKey(getKeyReveal(item, user)) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func getKeyItemStatus (item) = (item + "_status") | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func getValueItemStatus (item) = getStrByKey(getKeyItemStatus(item)) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func getKeyVoteCount (item,vote) = ((item + "_res:") + vote) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func getValueVoteCount (item,vote) = getNumberByKey(getKeyVoteCount(item, vote)) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | @Callable(i) | |
111 | 111 | func purchase (item) = { | |
112 | 112 | let pmt = extract(i.payment) | |
113 | 113 | if (isDefined(pmt.assetId)) | |
114 | 114 | then throw("WAVES tokens only at the moment") | |
115 | 115 | else { | |
116 | 116 | let userAddress = toBase58String(i.caller.bytes) | |
117 | 117 | let price = getValueItemPrice(item) | |
118 | 118 | let supplierAddrss = getValueItemSupplier(item) | |
119 | 119 | if ((price > pmt.amount)) | |
120 | 120 | then throw("purchase amount cannot be less than item price") | |
121 | 121 | else if ((pmt.amount > price)) | |
122 | 122 | then throw("purchase amount cannot be higher than item price") | |
123 | 123 | else if ((supplierAddrss == NONE)) | |
124 | 124 | then throw("supplier does not exist") | |
125 | 125 | else WriteSet([DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyBalanceSupplier(supplierAddrss), (getValueBalanceSupplier(supplierAddrss) + pmt.amount))]) | |
126 | 126 | } | |
127 | 127 | } | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | ||
131 | 131 | @Callable(i) | |
132 | 132 | func deposit () = { | |
133 | 133 | let pmt = extract(i.payment) | |
134 | 134 | if (isDefined(pmt.assetId)) | |
135 | 135 | then throw("can hodl waves only at the moment") | |
136 | 136 | else { | |
137 | 137 | let currentKey = toBase58String(i.caller.bytes) | |
138 | 138 | let currentAmount = match getInteger(this, currentKey) { | |
139 | 139 | case a: Int => | |
140 | 140 | a | |
141 | 141 | case _ => | |
142 | 142 | 0 | |
143 | 143 | } | |
144 | 144 | let wlStsCurr = match getString(this, ("wl_sts_" + currentKey)) { | |
145 | 145 | case a: String => | |
146 | 146 | a | |
147 | 147 | case _ => | |
148 | 148 | throw("User has not deen waitlisted") | |
149 | 149 | } | |
150 | 150 | let newAmount = (currentAmount + pmt.amount) | |
151 | 151 | WriteSet([DataEntry((BALANCE + currentKey), newAmount)]) | |
152 | 152 | } | |
153 | 153 | } | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | ||
157 | 157 | @Callable(i) | |
158 | 158 | func depositEUR () = { | |
159 | 159 | let pmt = extract(i.payment) | |
160 | 160 | if ((pmt.assetId != wEUR)) | |
161 | 161 | then throw("wEUR only please") | |
162 | 162 | else { | |
163 | 163 | let currentKey = toBase58String(i.caller.bytes) | |
164 | 164 | let currentAmount = match getInteger(this, currentKey) { | |
165 | 165 | case a: Int => | |
166 | 166 | a | |
167 | 167 | case _ => | |
168 | 168 | 0 | |
169 | 169 | } | |
170 | 170 | let newAmount = (currentAmount + pmt.amount) | |
171 | 171 | WriteSet([DataEntry(currentKey, newAmount)]) | |
172 | 172 | } | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | ||
177 | 177 | @Callable(i) | |
178 | 178 | func withdraw () = { | |
179 | 179 | let supplierAddress = toBase58String(i.caller.bytes) | |
180 | 180 | let balance = getValueBalanceSupplier(supplierAddress) | |
181 | 181 | if ((0 >= balance)) | |
182 | 182 | then throw("insufficient balance") | |
183 | 183 | else ScriptResult(WriteSet([DataEntry(getKeyBalanceSupplier(supplierAddress), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(supplierAddress), balance, unit)])) | |
184 | 184 | } | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | ||
188 | 188 | @Callable(i) | |
189 | 189 | func withdrawEUR (amount) = { | |
190 | 190 | let currentKey = toBase58String(i.caller.bytes) | |
191 | 191 | let currentAmount = match getInteger(this, currentKey) { | |
192 | 192 | case a: Int => | |
193 | 193 | a | |
194 | 194 | case _ => | |
195 | 195 | 0 | |
196 | 196 | } | |
197 | 197 | let newAmount = (currentAmount - amount) | |
198 | 198 | if ((0 > amount)) | |
199 | 199 | then throw("Can't withdraw negative balance") | |
200 | 200 | else if ((0 > newAmount)) | |
201 | 201 | then throw("Not enough balance") | |
202 | 202 | else ScriptResult(WriteSet([DataEntry(currentKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, wEUR)])) | |
203 | 203 | } | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | ||
207 | 207 | @Callable(i) | |
208 | 208 | func addItem (title,price,data) = { | |
209 | 209 | let supplierAddress = toBase58String(i.caller.bytes) | |
210 | 210 | let item = getKeyItem(supplierAddress, title) | |
211 | 211 | if ((0 >= price)) | |
212 | 212 | then throw("purchase amount cannot be less than item price") | |
213 | 213 | else if ((getValueItemSupplier(item) != NONE)) | |
214 | 214 | then throw("an item is already exist") | |
215 | 215 | else WriteSet([DataEntry(getKeyItemSupplier(item), supplierAddress), DataEntry(getKeyItemPrice(item), price), DataEntry(getKeyItemData(item), data)]) | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | ||
220 | 220 | @Callable(i) | |
221 | 221 | func voteCommit (item,hash) = { | |
222 | 222 | let user = toBase58String(i.caller.bytes) | |
223 | 223 | let commits = getValueCommitsCount(item) | |
224 | 224 | let status = getValueItemStatus(item) | |
225 | 225 | if ((commits >= VOTERS)) | |
226 | 226 | then throw("reached max num of voters") | |
227 | 227 | else if ((getValueCommit(item, user) != NONE)) | |
228 | 228 | then throw("user has already uch") | |
229 | 229 | else if ((getKeyItemSupplier(item) == NONE)) | |
230 | 230 | then throw("item does not exist") | |
231 | 231 | else if (if ((status != NONE)) | |
232 | 232 | then (status != VOTING) | |
233 | 233 | else false) | |
234 | 234 | then throw("voting is not possible") | |
235 | 235 | else WriteSet([DataEntry(getKeyCommit(item, user), hash), DataEntry(getKeyCommitsCount(item), (commits + 1)), DataEntry(getKeyItemStatus(item), if ((commits == VOTERS)) | |
236 | 236 | then REVEAL | |
237 | 237 | else VOTING)]) | |
238 | 238 | } | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | ||
242 | 242 | @Callable(i) | |
243 | 243 | func x_purchase () = { | |
244 | 244 | let pmt = extract(i.payment) | |
245 | 245 | if (isDefined(pmt.assetId)) | |
246 | 246 | then throw("can use WAVES only at the moment") | |
247 | 247 | else { | |
248 | 248 | let customerAddress = toBase58String(i.caller.bytes) | |
249 | 249 | let price = match getInteger(this, "item_A_coupon_price") { | |
250 | 250 | case a: Int => | |
251 | 251 | a | |
252 | 252 | case _ => | |
253 | 253 | 0 | |
254 | 254 | } | |
255 | 255 | if ((price > pmt.amount)) | |
256 | 256 | then throw("purchase amount cannot be less than item price") | |
257 | 257 | else if ((pmt.amount > price)) | |
258 | 258 | then throw("purchase amount cannot be higher than item price") | |
259 | 259 | else WriteSet([DataEntry(("status:purchase_item_A_customer_" + customerAddress), "confirmed"), DataEntry(("price:purchase_item_A_customer_" + customerAddress), price)]) | |
260 | 260 | } | |
261 | 261 | } | |
262 | 262 | ||
263 | 263 | ||
264 | 264 | ||
265 | 265 | @Callable(i) | |
266 | 266 | func x_withdraw (amount) = { | |
267 | 267 | let currentKey = toBase58String(i.caller.bytes) | |
268 | 268 | let currentAmount = match getInteger(this, (BALANCE + currentKey)) { | |
269 | 269 | case a: Int => | |
270 | 270 | a | |
271 | 271 | case _ => | |
272 | 272 | 0 | |
273 | 273 | } | |
274 | 274 | let newAmount = (currentAmount - amount) | |
275 | 275 | if ((0 > amount)) | |
276 | 276 | then throw("Can't withdraw negative amount") | |
277 | 277 | else if ((0 > newAmount)) | |
278 | 278 | then throw("Not enough balance") | |
279 | 279 | else ScriptResult(WriteSet([DataEntry((BALANCE + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, unit)])) | |
280 | 280 | } | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | @Verifier(tx) | |
284 | 284 | func verify () = { | |
285 | 285 | let acc1_1 = sigVerify(tx.bodyBytes, tx.proofs[0], acc1PubKey) | |
286 | 286 | let acc1_2 = sigVerify(tx.bodyBytes, tx.proofs[1], acc1PubKey) | |
287 | 287 | let acc1_3 = sigVerify(tx.bodyBytes, tx.proofs[2], acc1PubKey) | |
288 | 288 | let acc2_1 = sigVerify(tx.bodyBytes, tx.proofs[0], acc2PubKey) | |
289 | 289 | let acc2_2 = sigVerify(tx.bodyBytes, tx.proofs[1], acc2PubKey) | |
290 | 290 | let acc2_3 = sigVerify(tx.bodyBytes, tx.proofs[2], acc2PubKey) | |
291 | 291 | let acc3_1 = sigVerify(tx.bodyBytes, tx.proofs[0], acc3PubKey) | |
292 | 292 | let acc3_2 = sigVerify(tx.bodyBytes, tx.proofs[1], acc3PubKey) | |
293 | 293 | let acc3_3 = sigVerify(tx.bodyBytes, tx.proofs[2], acc3PubKey) | |
294 | 294 | let acc1acc2 = if (if (if (if (if (if (acc1_1) | |
295 | 295 | then acc2_2 | |
296 | 296 | else false) | |
297 | 297 | then true | |
298 | 298 | else if (acc1_1) | |
299 | 299 | then acc2_3 | |
300 | 300 | else false) | |
301 | 301 | then true | |
302 | 302 | else if (acc1_2) | |
303 | 303 | then acc2_1 | |
304 | 304 | else false) | |
305 | 305 | then true | |
306 | 306 | else if (acc1_2) | |
307 | 307 | then acc2_3 | |
308 | 308 | else false) | |
309 | 309 | then true | |
310 | 310 | else if (acc1_3) | |
311 | 311 | then acc2_1 | |
312 | 312 | else false) | |
313 | 313 | then true | |
314 | 314 | else if (acc1_3) | |
315 | 315 | then acc2_2 | |
316 | 316 | else false | |
317 | 317 | let acc1acc3 = if (if (if (if (if (if (acc1_1) | |
318 | 318 | then acc3_2 | |
319 | 319 | else false) | |
320 | 320 | then true | |
321 | 321 | else if (acc1_1) | |
322 | 322 | then acc3_3 | |
323 | 323 | else false) | |
324 | 324 | then true | |
325 | 325 | else if (acc1_2) | |
326 | 326 | then acc3_1 | |
327 | 327 | else false) | |
328 | 328 | then true | |
329 | 329 | else if (acc1_2) | |
330 | 330 | then acc3_3 | |
331 | 331 | else false) | |
332 | 332 | then true | |
333 | 333 | else if (acc1_3) | |
334 | 334 | then acc3_1 | |
335 | 335 | else false) | |
336 | 336 | then true | |
337 | 337 | else if (acc1_3) | |
338 | 338 | then acc3_2 | |
339 | 339 | else false | |
340 | 340 | let acc2acc3 = if (if (if (if (if (if (acc3_1) | |
341 | 341 | then acc2_2 | |
342 | 342 | else false) | |
343 | 343 | then true | |
344 | 344 | else if (acc3_1) | |
345 | 345 | then acc2_3 | |
346 | 346 | else false) | |
347 | 347 | then true | |
348 | 348 | else if (acc3_2) | |
349 | 349 | then acc2_1 | |
350 | 350 | else false) | |
351 | 351 | then true | |
352 | 352 | else if (acc3_2) | |
353 | 353 | then acc2_3 | |
354 | 354 | else false) | |
355 | 355 | then true | |
356 | 356 | else if (acc3_3) | |
357 | 357 | then acc2_1 | |
358 | 358 | else false) | |
359 | 359 | then true | |
360 | 360 | else if (acc3_3) | |
361 | 361 | then acc2_2 | |
362 | 362 | else false | |
363 | 363 | match tx { | |
364 | 364 | case d: SetScriptTransaction => | |
365 | 365 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
366 | 366 | case d: DataTransaction => | |
367 | 367 | true | |
368 | 368 | case d: TransferTransaction => | |
369 | 369 | true | |
370 | 370 | case d: InvokeScriptTransaction => | |
371 | 371 | true | |
372 | 372 | case d: IssueTransaction => | |
373 | 373 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
374 | 374 | case d: ReissueTransaction => | |
375 | 375 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
376 | 376 | case d: BurnTransaction => | |
377 | 377 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
378 | + | case d: SetAssetScriptTransaction => | |
379 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
378 | 380 | case _ => | |
379 | 381 | false | |
380 | 382 | } | |
381 | 383 | } | |
382 | 384 |
github/deemru/w8io/169f3d6 51.48 ms ◑