tx · GFDz3zfQCWLqqVU9QCs6qTR4KQgdTCZUqWDKprTRMP9m

3N6GuFb7Ucxs3cZjmwYDusKtfLaAigDtav5:  -0.01000000 Waves

2023.05.29 14:23 [2599196] smart account 3N6GuFb7Ucxs3cZjmwYDusKtfLaAigDtav5 > SELF 0.00000000 Waves

{ "type": 13, "id": "GFDz3zfQCWLqqVU9QCs6qTR4KQgdTCZUqWDKprTRMP9m", "fee": 1000000, "feeAssetId": null, "timestamp": 1685359459336, "version": 2, "chainId": 84, "sender": "3N6GuFb7Ucxs3cZjmwYDusKtfLaAigDtav5", "senderPublicKey": "EMAuwff72FwVoiJK9xHyuUUMbpKmgV5temqeLU2aEsiS", "proofs": [ "3ydpfBHNEyC8dyHk6JMM3EuTFY4zG35ExncSJYf1YZHnEEXuxLMC4GShxcTt3Dpbdj4VC13xpRmUQhRGydFwuCSM" ], "script": "base64:BgIOCAISABIAEgASABIAEgADAQ9nZXRSYW5kb21OdW1iZXIABA9yYW5kb21TZWVkQmxvY2sJAQV2YWx1ZQEJAO0HAQACBApyYW5kb21IYXNoCQDUFgEJAQV2YWx1ZQEIBQ9yYW5kb21TZWVkQmxvY2sDdnJmCQCxCQEFCnJhbmRvbUhhc2gBB3Rlc3Q1aDEBB2FkZHJlc3MJAMwIAgkBC1N0cmluZ0VudHJ5AgIIYWRkcmVzczIFB2FkZHJlc3MFA25pbAEEY2FsYwAAAwYBaQEFdGVzdDEABAZyZXN1bHQJAQRjYWxjAAkAlAoCBQNuaWwFBnJlc3VsdAFpAQV0ZXN0MwAEB2FkZHJlc3MJANgEAQgIBQFpBmNhbGxlcgVieXRlcwkAzAgCCQELU3RyaW5nRW50cnkCAgdhZGRyZXNzBQdhZGRyZXNzBQNuaWwBaQEFdGVzdDQABAdhZGRyZXNzCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMJAAIBBQdhZGRyZXNzAWkBBXRlc3Q1AAQHYWRkcmVzcwkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzCQEHdGVzdDVoMQEFB2FkZHJlc3MBaQEFdGVzdDYABAdhZGRyZXNzCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEAXIJAQd0ZXN0NWgxAQUHYWRkcmVzcwkAAgEFB2FkZHJlc3MBaQEFdGVzdDcABAdhZGRyZXNzCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEAXIJAKQDAQkBD2dldFJhbmRvbU51bWJlcgAJAAIBBQFyAChOyhk=", "height": 2599196, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hfxbmge5Ug9hy5vWzttBTmLdoQWm41E1DJ4dzSSFmG9P Next: BiPxeH2DoWVMnNnvRipw2GNdxptzhik4NM3aZz4VNF29 Diff:
OldNewDifferences
5454 }
5555
5656
57+
58+@Callable(i)
59+func test7 () = {
60+ let address = toBase58String(i.caller.bytes)
61+ let r = toString(getRandomNumber())
62+ throw(r)
63+ }
64+
65+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getRandomNumber () = {
55 let randomSeedBlock = value(blockInfoByHeight(2))
66 let randomHash = sha256_16Kb(value(randomSeedBlock.vrf))
77 toInt(randomHash)
88 }
99
1010
1111 func test5h1 (address) = [StringEntry("address2", address)]
1212
1313
1414 func calc () = 3
1515
1616
1717 @Callable(i)
1818 func test1 () = {
1919 let result = calc()
2020 $Tuple2(nil, result)
2121 }
2222
2323
2424
2525 @Callable(i)
2626 func test3 () = {
2727 let address = toBase58String(i.caller.bytes)
2828 [StringEntry("address", address)]
2929 }
3030
3131
3232
3333 @Callable(i)
3434 func test4 () = {
3535 let address = toBase58String(i.caller.bytes)
3636 throw(address)
3737 }
3838
3939
4040
4141 @Callable(i)
4242 func test5 () = {
4343 let address = toBase58String(i.caller.bytes)
4444 test5h1(address)
4545 }
4646
4747
4848
4949 @Callable(i)
5050 func test6 () = {
5151 let address = toBase58String(i.caller.bytes)
5252 let r = test5h1(address)
5353 throw(address)
5454 }
5555
5656
57+
58+@Callable(i)
59+func test7 () = {
60+ let address = toBase58String(i.caller.bytes)
61+ let r = toString(getRandomNumber())
62+ throw(r)
63+ }
64+
65+

github/deemru/w8io/169f3d6 
22.99 ms