tx · C6R1q8tzqP3tQXxuDn6b9cWyGBzoq2oxbE6KjeQ3ToqL

3N5NY2v5wdKQJbCvQA5o5hSihn7t7wYZ496:  -0.01000000 Waves

2025.01.02 13:10 [3441439] smart account 3N5NY2v5wdKQJbCvQA5o5hSihn7t7wYZ496 > SELF 0.00000000 Waves

{ "type": 13, "id": "C6R1q8tzqP3tQXxuDn6b9cWyGBzoq2oxbE6KjeQ3ToqL", "fee": 1000000, "feeAssetId": null, "timestamp": 1735812649665, "version": 2, "chainId": 84, "sender": "3N5NY2v5wdKQJbCvQA5o5hSihn7t7wYZ496", "senderPublicKey": "8Ti3dhEToApephiZ47QJeuQX3UYifveNLPQjNstsLho9", "proofs": [ "5ib8QhaoGLuVuYnMtVrab77RytDH13pBj3rDyM9TBf3shisRpfhERP2K9QgRR4r8xVKjGbayaEb8wQByaa3sAxrr" ], "script": "base64:AAIFAAAAAAAAABQIAhIFCgMICAgSAwoBCBIECgIICAAAAAMAAAAADGFkbWluQWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVAqh3jB68WUdF1MeXFctJAWzG0XQgRHu1wAAAAALZEFwcEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSNFVN42dVClMcMW1BboH6NujWeWSoZV/ABAAAADXNlYXJjaEZvclVzZXIAAAABAAAAB2FkZHJlc3MEAAAABHVzZXIEAAAAByRtYXRjaDAJAAQiAAAAAQUAAAAHYWRkcmVzcwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFzBQAAAAckbWF0Y2gwBQAAAAFzAgAAAAdObyBVc2VyBQAAAAR1c2VyAAAAAwAAAAFpAQAAAA9yZWdpc3RlckFjY291bnQAAAADAAAAB2FkZHJlc3MAAAAEcm9sZQAAAARuYW1lAwkBAAAAAiE9AAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAAAxhZG1pbkFkZHJlc3MJAAACAAAAAQIAAAAkT25seSB0aGUgYWRtaW4gY2F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IT0AAAACBQAAAAppbnZva2VUYXNrBQAAAAppbnZva2VUYXNrCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgUAAAADbmlsAAAAALNuH1U=", "height": 3441439, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2qCufYWWKYzNDL7L62DG66YPmq8JfZVmQ9dH7fN4wmFQ Next: 9GYPAyfhqiYimH47YRCuTtH4YP9W1tuJsBGd9iX3mfeq Diff:
OldNewDifferences
2727
2828
2929 @Callable(h)
30-func deleteAccount (d) = if ((h.caller != a))
31- then throw("Only the admin can delete accounts")
32- else [DeleteEntry(d), DeleteEntry((d + "_name"))]
30+func deleteAccount (d) = {
31+ let k = h.callerPublicKey
32+ let e = c(toBase58String(k))
33+ if ((e != "Admin"))
34+ then throw("Only the admin can delete accounts")
35+ else [DeleteEntry(d), DeleteEntry((d + "_name"))]
36+ }
3337
3438
3539
3640 @Callable(h)
37-func saveData (k,l) = {
38- let m = h.callerPublicKey
39- let e = c(toBase58String(m))
41+func saveData (l,m) = {
42+ let k = h.callerPublicKey
43+ let e = c(toBase58String(k))
4044 if ((e == "No User"))
4145 then throw("User not eligible")
4246 else {
43- let n = [k, l]
47+ let n = [l, m]
4448 let o = invoke(b, "SaveData", n, nil)
4549 if ((o != o))
4650 then throw("Strict value is not equal to itself.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = Address(base58'3MptJSctbAkp5fddvpQmWYjjKrSoim6dL38')
55
66 let b = Address(base58'3N2n4bjG8CjdKiwLPyp3hBM4MDJ3XwMZR5h')
77
88 func c (d) = {
99 let e = {
1010 let f = getString(d)
1111 if ($isInstanceOf(f, "String"))
1212 then {
1313 let g = f
1414 g
1515 }
1616 else "No User"
1717 }
1818 e
1919 }
2020
2121
2222 @Callable(h)
2323 func registerAccount (d,i,j) = if ((h.caller != a))
2424 then throw("Only the admin can register accounts")
2525 else [StringEntry(d, i), StringEntry((d + "_name"), j)]
2626
2727
2828
2929 @Callable(h)
30-func deleteAccount (d) = if ((h.caller != a))
31- then throw("Only the admin can delete accounts")
32- else [DeleteEntry(d), DeleteEntry((d + "_name"))]
30+func deleteAccount (d) = {
31+ let k = h.callerPublicKey
32+ let e = c(toBase58String(k))
33+ if ((e != "Admin"))
34+ then throw("Only the admin can delete accounts")
35+ else [DeleteEntry(d), DeleteEntry((d + "_name"))]
36+ }
3337
3438
3539
3640 @Callable(h)
37-func saveData (k,l) = {
38- let m = h.callerPublicKey
39- let e = c(toBase58String(m))
41+func saveData (l,m) = {
42+ let k = h.callerPublicKey
43+ let e = c(toBase58String(k))
4044 if ((e == "No User"))
4145 then throw("User not eligible")
4246 else {
43- let n = [k, l]
47+ let n = [l, m]
4448 let o = invoke(b, "SaveData", n, nil)
4549 if ((o != o))
4650 then throw("Strict value is not equal to itself.")
4751 else nil
4852 }
4953 }
5054
5155

github/deemru/w8io/169f3d6 
20.58 ms