tx · JCpVgFrsDothsNN84SPooT45T6PyEmNAK5fsgpwRYycd

3N8GKGgDPGGUaAhPMNtsxTJWafHDRnwL7GQ:  -0.01000000 Waves

2023.05.31 00:33 [2601256] smart account 3N8GKGgDPGGUaAhPMNtsxTJWafHDRnwL7GQ > SELF 0.00000000 Waves

{ "type": 13, "id": "JCpVgFrsDothsNN84SPooT45T6PyEmNAK5fsgpwRYycd", "fee": 1000000, "feeAssetId": null, "timestamp": 1685482382420, "version": 2, "chainId": 84, "sender": "3N8GKGgDPGGUaAhPMNtsxTJWafHDRnwL7GQ", "senderPublicKey": "y5twTW93XMmi75S5bati2cok9QLLFivsrwJedxJeUkX", "proofs": [ "3d1a6sPo1Pj8HrWNeKFmBRArSYC3dTewsFzv6bCx96C9BWEYCMyHmWDTYQmJWeK47d2uRCaR69v6HrWR8v56Ljor" ], "script": "base64:BgIECAISAAIBD2dldFJhbmRvbU51bWJlcgAED3JhbmRvbVNlZWRCbG9jawkBBXZhbHVlAQkA7QcBCQBlAgUGaGVpZ2h0AAEECnJhbmRvbUhhc2gJANQWAQkBBXZhbHVlAQgFD3JhbmRvbVNlZWRCbG9jawN2cmYEA3N0cgkA2AQBBQpyYW5kb21IYXNoBAhsYXN0Q2hhcgkAsgICBQNzdHIAAgUIbGFzdENoYXIBEGdldFJhbmRvbU51bWJlcjIABA9yYW5kb21TZWVkQmxvY2sJAQV2YWx1ZQEJAO0HAQkAZQIFBmhlaWdodAABBApyYW5kb21IYXNoCQDUFgEJAQV2YWx1ZQEIBQ9yYW5kb21TZWVkQmxvY2sDdnJmCQDYBAEFCnJhbmRvbUhhc2gBAWkBBXRlc3Q3AAQHYWRkcmVzcwkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzBAFyCQEPZ2V0UmFuZG9tTnVtYmVyAAQCcjIJARBnZXRSYW5kb21OdW1iZXIyAAkAlAoCCQDMCAIJAQtTdHJpbmdFbnRyeQICA1hYWAUBcgkAzAgCCQELU3RyaW5nRW50cnkCAgRYWFgyBQJyMgUDbmlsAAEAaTRBgg==", "height": 2601256, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6ejCSNxjA7JsdGmJGyypLYpHq8EdBn3ucdmPBfsiApFe Next: DQLqqkML3tNNptJR8R2P5YpHBCMmi9Bq1C1Dw9KVqX7o Diff:
OldNewDifferences
1010 }
1111
1212
13+func getRandomNumber2 () = {
14+ let randomSeedBlock = value(blockInfoByHeight((height - 1)))
15+ let randomHash = sha256_16Kb(value(randomSeedBlock.vrf))
16+ toBase58String(randomHash)
17+ }
18+
19+
1320 @Callable(i)
1421 func test7 () = {
1522 let address = toBase58String(i.caller.bytes)
1623 let r = getRandomNumber()
17- $Tuple2([StringEntry("XXX", r)], 1)
24+ let r2 = getRandomNumber2()
25+ $Tuple2([StringEntry("XXX", r), StringEntry("XXX2", r2)], 1)
1826 }
1927
2028
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getRandomNumber () = {
55 let randomSeedBlock = value(blockInfoByHeight((height - 1)))
66 let randomHash = sha256_16Kb(value(randomSeedBlock.vrf))
77 let str = toBase58String(randomHash)
88 let lastChar = takeRight(str, 2)
99 lastChar
1010 }
1111
1212
13+func getRandomNumber2 () = {
14+ let randomSeedBlock = value(blockInfoByHeight((height - 1)))
15+ let randomHash = sha256_16Kb(value(randomSeedBlock.vrf))
16+ toBase58String(randomHash)
17+ }
18+
19+
1320 @Callable(i)
1421 func test7 () = {
1522 let address = toBase58String(i.caller.bytes)
1623 let r = getRandomNumber()
17- $Tuple2([StringEntry("XXX", r)], 1)
24+ let r2 = getRandomNumber2()
25+ $Tuple2([StringEntry("XXX", r), StringEntry("XXX2", r2)], 1)
1826 }
1927
2028

github/deemru/w8io/026f985 
23.77 ms