tx · 2FpunriByB1GDBLnzRiLhV14dAcwxKRrvyAgXYnJdWtF

3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx:  -0.01000000 Waves

2023.05.20 15:59 [2586323] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves

{ "type": 13, "id": "2FpunriByB1GDBLnzRiLhV14dAcwxKRrvyAgXYnJdWtF", "fee": 1000000, "feeAssetId": null, "timestamp": 1684587649224, "version": 2, "chainId": 84, "sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx", "senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc", "proofs": [ "32DTmLbb6JvkoeBVAipPXQfPHJcXNBRgcbrbUStW7LY1MLn1yFRvY5qKwTkrHt9ZvVEMHC9QS98K4W5mZN2BUrnt" ], "script": "base64:BgIECAISAAABAWkBCHJvdWxldHRlAAQDYmV0CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAQHYXNzZXRJRAgJAJEDAggFAWkIcGF5bWVudHMAAAdhc3NldElkBAFjAgRSaWRlBAdjVG9CeXRlCQCgAwEJAJ4DAQkA2QQBBQFjBAlyYW5kb21OdW0JAGoCBQdjVG9CeXRlAGQEDndpblByb2JhYmlsaXR5ACgEC3dpblRyYW5zZmVyCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgkAaAIFA2JldAACBQdhc3NldElEBQNuaWwEDXdyaXRlTGFzdFBsYXkJAMwIAgkBDEludGVnZXJFbnRyeQICCGxhc3RQbGF5BQlyYW5kb21OdW0FA25pbAMJAGYCBQ53aW5Qcm9iYWJpbGl0eQUJcmFuZG9tTnVtCQCUCgIFC3dpblRyYW5zZmVyBQ13cml0ZUxhc3RQbGF5CQCUCgIJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyAAAFB2Fzc2V0SUQFA25pbAUNd3JpdGVMYXN0UGxheQECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXno+w6r", "height": 2586323, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Euugy25SCgAQVfk4DoQMt5RF91vqSg7gxERj8kRXirrZ Next: J4prm4G1Ysk7tiGYAQkjhSy3eW1jjybQWtdAtU5F1NJU Diff:
OldNewDifferences
88 let b = a.payments[0].amount
99 let c = a.payments[0].assetId
1010 let d = "Ride"
11- let e = toInt(toBigInt(fromBase16String(d)))
11+ let e = toInt(toBigInt(fromBase58String(d)))
1212 let f = (e % 100)
1313 let g = 40
1414 let h = [ScriptTransfer(a.caller, (b * 2), c)]
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"
11- let e = toInt(toBigInt(fromBase16String(d)))
11+ let e = toInt(toBigInt(fromBase58String(d)))
1212 let f = (e % 100)
1313 let g = 40
1414 let h = [ScriptTransfer(a.caller, (b * 2), c)]
1515 let i = [IntegerEntry("lastPlay", f)]
1616 if ((g > f))
1717 then $Tuple2(h, i)
1818 else $Tuple2([ScriptTransfer(a.caller, 0, c)], i)
1919 }
2020
2121
2222 @Verifier(j)
2323 func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
2424

github/deemru/w8io/169f3d6 
32.52 ms