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:
Old | New | | Differences |
---|
54 | 54 | | } |
---|
55 | 55 | | |
---|
56 | 56 | | |
---|
| 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:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func getRandomNumber () = { |
---|
5 | 5 | | let randomSeedBlock = value(blockInfoByHeight(2)) |
---|
6 | 6 | | let randomHash = sha256_16Kb(value(randomSeedBlock.vrf)) |
---|
7 | 7 | | toInt(randomHash) |
---|
8 | 8 | | } |
---|
9 | 9 | | |
---|
10 | 10 | | |
---|
11 | 11 | | func test5h1 (address) = [StringEntry("address2", address)] |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | func calc () = 3 |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(i) |
---|
18 | 18 | | func test1 () = { |
---|
19 | 19 | | let result = calc() |
---|
20 | 20 | | $Tuple2(nil, result) |
---|
21 | 21 | | } |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | @Callable(i) |
---|
26 | 26 | | func test3 () = { |
---|
27 | 27 | | let address = toBase58String(i.caller.bytes) |
---|
28 | 28 | | [StringEntry("address", address)] |
---|
29 | 29 | | } |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|
32 | 32 | | |
---|
33 | 33 | | @Callable(i) |
---|
34 | 34 | | func test4 () = { |
---|
35 | 35 | | let address = toBase58String(i.caller.bytes) |
---|
36 | 36 | | throw(address) |
---|
37 | 37 | | } |
---|
38 | 38 | | |
---|
39 | 39 | | |
---|
40 | 40 | | |
---|
41 | 41 | | @Callable(i) |
---|
42 | 42 | | func test5 () = { |
---|
43 | 43 | | let address = toBase58String(i.caller.bytes) |
---|
44 | 44 | | test5h1(address) |
---|
45 | 45 | | } |
---|
46 | 46 | | |
---|
47 | 47 | | |
---|
48 | 48 | | |
---|
49 | 49 | | @Callable(i) |
---|
50 | 50 | | func test6 () = { |
---|
51 | 51 | | let address = toBase58String(i.caller.bytes) |
---|
52 | 52 | | let r = test5h1(address) |
---|
53 | 53 | | throw(address) |
---|
54 | 54 | | } |
---|
55 | 55 | | |
---|
56 | 56 | | |
---|
| 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 | + | |
---|