tx · 6KihG74AYXmedUyGSkJRzgT3qoVhc2fWFWiHNPjoid2o

3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx:  -0.01000000 Waves

2023.05.20 19:24 [2586524] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves

{ "type": 13, "id": "6KihG74AYXmedUyGSkJRzgT3qoVhc2fWFWiHNPjoid2o", "fee": 1000000, "feeAssetId": null, "timestamp": 1684599874678, "version": 2, "chainId": 84, "sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx", "senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc", "proofs": [ "3NXZyWcPWFFZVi3HUihorSQqjhd3vQ1Ri1t5gcUPQtP8YPJ9AmT9wvEtCmAbvq8n69LmszirhQjacAy3uHZAML8S" ], "script": "base64:BgIECAISAAABAWkBCHJvdWxldHRlAAQDYmV0CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAQHYXNzZXRJRAgJAJEDAggFAWkIcGF5bWVudHMAAAdhc3NldElkBAFjAgRSaWRlBAdjVG9CeXRlCQCgAwEJAJ4DAQkA2QQBBQFjBAlyYW5kb21OdW0JAGoCBQdjVG9CeXRlAGQEDndpblByb2JhYmlsaXR5ACgEBmdldE51bQkAmggCBQR0aGlzAg1SYW5kb20gTnVtYmVyCQDMCAIJAQxJbnRlZ2VyRW50cnkCAg9SYW5kb20gTnVtYmVyOiAFCXJhbmRvbU51bQUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleX9ntps=", "height": 2586524, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Axr5u4y3SjX2LPTTvYK5ahqLJhiYexJ88AgQwCyUu5b1 Next: 7GZ1wvNFLNKbTYnn814SPyThXvD9VysJPjTrnDSZFG4z Diff:
OldNewDifferences
1010 let d = "Ride"
1111 let e = toInt(toBigInt(fromBase58String(d)))
1212 let f = (e % 100)
13- let g = 4
14- let h = 40
15- let i = [ScriptTransfer(a.caller, (b * 2), c)]
16- let j = [IntegerEntry("lastPlay", f)]
17- if ((h > g))
18- then $Tuple2(i, j)
19- else $Tuple2([ScriptTransfer(a.caller, 0, c)], j)
13+ let g = 40
14+ let h = getInteger(this, "Random Number")
15+[IntegerEntry("Random Number: ", f)]
2016 }
2117
2218
23-@Verifier(k)
24-func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
19+@Verifier(i)
20+func j () = sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey)
2521
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func roulette () = {
88 let b = a.payments[0].amount
99 let c = a.payments[0].assetId
1010 let d = "Ride"
1111 let e = toInt(toBigInt(fromBase58String(d)))
1212 let f = (e % 100)
13- let g = 4
14- let h = 40
15- let i = [ScriptTransfer(a.caller, (b * 2), c)]
16- let j = [IntegerEntry("lastPlay", f)]
17- if ((h > g))
18- then $Tuple2(i, j)
19- else $Tuple2([ScriptTransfer(a.caller, 0, c)], j)
13+ let g = 40
14+ let h = getInteger(this, "Random Number")
15+[IntegerEntry("Random Number: ", f)]
2016 }
2117
2218
23-@Verifier(k)
24-func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
19+@Verifier(i)
20+func j () = sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey)
2521

github/deemru/w8io/169f3d6 
33.26 ms