tx · BWNiNr7xB6vdFVZcc8JxzmLxaymBEdWVN5adkyni1qyj

3MzBuApuRBa4JuWUpB2bLdJ6CxhCXzX1yDV:  -0.01000000 Waves

2023.01.02 20:03 [2387625] smart account 3MzBuApuRBa4JuWUpB2bLdJ6CxhCXzX1yDV > SELF 0.00000000 Waves

{ "type": 13, "id": "BWNiNr7xB6vdFVZcc8JxzmLxaymBEdWVN5adkyni1qyj", "fee": 1000000, "feeAssetId": null, "timestamp": 1672679029620, "version": 2, "chainId": 84, "sender": "3MzBuApuRBa4JuWUpB2bLdJ6CxhCXzX1yDV", "senderPublicKey": "2YWSmoYRSAcdKyakgiW5e1FrnkQHaxZyXqduxgLhHo82", "proofs": [ "5cR93tMXAP2K5S1WpnqctMybbpCNgFW8wTiN6EDztMKQ9TmG9fG8qiBGuC7YT8xFJqWYewdpzJM5icwiN1vva3hR" ], "script": "base64:AAIDAAAAAAAAAAwIARIDCgEIEgMKAQgAAAAFAAAAAARzZWVkAgAAAGNtYW5hZ2UgbWFudWFsIHJlY2FsbCBoYXJ2ZXN0IHNlcmllcyBkZXNlcnQgbWVsdCBwb2xpY2Ugcm9zZSBob2xsb3cgbW9yYWwgcGxlZGdlIGtpdHRlbiBwb3NpdGlvbiBhZGQAAAAADGFuc3dlcnNDb3VudAAAAAAAAAAAFAAAAAAHYW5zd2VycwkABEwAAAACAgAAAA5JdCBpcyBjZXJ0YWluLgkABEwAAAACAgAAABNJdCBpcyBkZWNpZGVkbHkgc28uCQAETAAAAAICAAAAEFdpdGhvdXQgYSBkb3VidC4JAARMAAAAAgIAAAARWWVzIC0gZGVmaW5pdGVseS4JAARMAAAAAgIAAAATWW91IG1heSByZWx5IG9uIGl0LgkABEwAAAACAgAAABFBcyBJIHNlZSBpdCwgeWVzLgkABEwAAAACAgAAAAxNb3N0IGxpa2VseS4JAARMAAAAAgIAAAANT3V0bG9vayBnb29kLgkABEwAAAACAgAAAARZZXMuCQAETAAAAAICAAAAE1NpZ25zIHBvaW50IHRvI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AAhxdWVzdGlvbgkBAAAAEWdldFByZXZpb3VzQW5zd2VyAAAAAQUAAAANY2FsbGVyQWRkcmVzcwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAA1jYWxsZXJBZGRyZXNzAgAAAAJfcQUAAAAIcXVlc3Rpb24JAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAANY2FsbGVyQWRkcmVzcwIAAAACX2EFAAAABmFuc3dlcgUAAAADbmlsAAAAAWkBAAAAC2NhbGN1bGF0ZVBLAAAAAQAAAAdhZGRyZXNzBAAAAA1jYWxsZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAB25ld3NlZWQJAASwAAAAAQkAAZsAAAABBQAAAARzZWVkBAAAAAp0ZXN0YmFzZTU4CQACWAAAAAEJAAGbAAAAAQUAAAAHbmV3c2VlZAQAAAAJdGVzdGJsYWtlCQAB9gAAAAEJAAGbAAAAAQUAAAAEc2VlZAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAA1jYWxsZXJBZGRyZXNzAgAAAAtfdGVzdGJhc2U1OAUAAAAKdGVzdGJhc2U1OAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAA1jYWxsZXJBZGRyZXNzAgAAAApfdGVzdGJsYWtlBQAAAAl0ZXN0Ymxha2UFAAAAA25pbAAAAADyKKyQ", "height": 2387625, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HsBEaAb1Far5JzDhxCk6pEDymQ5kozRQeKyGTcrFupRv Next: MNURqWWMXibXj2V8nGmFK9TDjBaueZDHDAjBrQ4gGG6 Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = "manage%20manual%20recall%20harvest%20series%20desert%20melt%20police%20rose%20hollow%20moral%20pledge%20kitten%20position%20add"
4+let a = "manage manual recall harvest series desert melt police rose hollow moral pledge kitten position add"
55
66 let b = 20
77
3737 @Callable(m)
3838 func calculatePK (j) = {
3939 let n = toBase58String(m.caller.bytes)
40- let p = toBase58String(toBytes(a))
41- let q = blake2b256(toBytes(a))
42- WriteSet([DataEntry((n + "_testbase58"), p), DataEntry((n + "_testblake"), q)])
40+ let p = toUtf8String(toBytes(a))
41+ let q = toBase58String(toBytes(p))
42+ let r = blake2b256(toBytes(a))
43+ WriteSet([DataEntry((n + "_testbase58"), q), DataEntry((n + "_testblake"), r)])
4344 }
4445
4546
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = "manage%20manual%20recall%20harvest%20series%20desert%20melt%20police%20rose%20hollow%20moral%20pledge%20kitten%20position%20add"
4+let a = "manage manual recall harvest series desert melt police rose hollow moral pledge kitten position add"
55
66 let b = 20
77
88 let c = ["It is certain.", "It is decidedly so.", "Without a doubt.", "Yes - definitely.", "You may rely on it.", "As I see it, yes.", "Most likely.", "Outlook good.", "Yes.", "Signs point to yes.", "Reply hazy, try again.", "Ask again later.", "Better not tell you now.", "Cannot predict now.", "Concentrate and ask again.", "Don't count on it.", "My reply is no.", "My sources say no.", "Outlook not so good.", "Very doubtful."]
99
1010 func d (e,f) = {
1111 let g = sha256(toBytes((e + f)))
1212 let h = toInt(g)
1313 c[(h % b)]
1414 }
1515
1616
1717 func i (j) = {
1818 let k = getString(this, (j + "_a"))
1919 if ($isInstanceOf(k, "String"))
2020 then {
2121 let l = k
2222 l
2323 }
2424 else j
2525 }
2626
2727
2828 @Callable(m)
2929 func tellme (e) = {
3030 let n = toBase58String(m.caller.bytes)
3131 let o = d(e, i(n))
3232 WriteSet([DataEntry((n + "_q"), e), DataEntry((n + "_a"), o)])
3333 }
3434
3535
3636
3737 @Callable(m)
3838 func calculatePK (j) = {
3939 let n = toBase58String(m.caller.bytes)
40- let p = toBase58String(toBytes(a))
41- let q = blake2b256(toBytes(a))
42- WriteSet([DataEntry((n + "_testbase58"), p), DataEntry((n + "_testblake"), q)])
40+ let p = toUtf8String(toBytes(a))
41+ let q = toBase58String(toBytes(p))
42+ let r = blake2b256(toBytes(a))
43+ WriteSet([DataEntry((n + "_testbase58"), q), DataEntry((n + "_testblake"), r)])
4344 }
4445
4546

github/deemru/w8io/026f985 
21.65 ms