tx · 2qCufYWWKYzNDL7L62DG66YPmq8JfZVmQ9dH7fN4wmFQ

3N5NY2v5wdKQJbCvQA5o5hSihn7t7wYZ496:  -0.01000000 Waves

2025.01.02 12:23 [3441392] smart account 3N5NY2v5wdKQJbCvQA5o5hSihn7t7wYZ496 > SELF 0.00000000 Waves

{ "type": 13, "id": "2qCufYWWKYzNDL7L62DG66YPmq8JfZVmQ9dH7fN4wmFQ", "fee": 1000000, "feeAssetId": null, "timestamp": 1735809837506, "version": 2, "chainId": 84, "sender": "3N5NY2v5wdKQJbCvQA5o5hSihn7t7wYZ496", "senderPublicKey": "8Ti3dhEToApephiZ47QJeuQX3UYifveNLPQjNstsLho9", "proofs": [ "U9Z7GDH2jsqENGvsyUyVSYLTcZ2mJr7prHimsYAfx4S3ahmMz55EzFXdz45e7Rc1HGQcCLnwBsyy8336876AFX6" ], "script": "base64:AAIFAAAAAAAAABQIAhIFCgMICAgSAwoBCBIECgIICAAAAAMAAAAADGFkbWluQWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVAqh3jB68WUdF1MeXFctJAWzG0XQgRHu1wAAAAALZEFwcEFkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSNFVN42dVClMcMW1BboH6NujWeWSoZV/ABAAAADXNlYXJjaEZvclVzZXIAAAABAAAAB2FkZHJlc3MEAAAABHVzZXIEAAAAByRtYXRjaDAJAAQiAAAAAQUAAAAHYWRkcmVzcwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFzBQAAAAckbWF0Y2gwBQAAAAFzAgAAAAdObyBVc2VyBQAAAAR1c2VyAAAAAwAAAAFpAQAAAA9yZWdpc3RlckFjY291bnQAAAADAAAAB2FkZHJlc3MAAAAEcm9sZQAAAARuYW1lAwkBAAAAAiE9AAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAAAxhZG1pbkFkZHJlc3MJAAACAAAAAQIAAAAkT25seSB0aGUgYWRtaW4gY2Fu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byBpdHNlbGYuBQAAAANuaWwAAAAAcxkA9g==", "height": 3441392, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hpcr5pGGPGaDEXvaTNRu3vsLepcC3MjTk1FhPFz7cEV2 Next: C6R1q8tzqP3tQXxuDn6b9cWyGBzoq2oxbE6KjeQ3ToqL Diff:
OldNewDifferences
3131
3232
3333 @Callable(i)
34-func saveData (temperature) = {
35- let caller = i.caller
36- let user = searchForUser(toBase58String(caller.bytes))
34+func saveData (temperature,humidity) = {
35+ let caller = i.callerPublicKey
36+ let user = searchForUser(toBase58String(caller))
3737 if ((user == "No User"))
3838 then throw("User not eligible")
3939 else {
40- let parameters = [temperature]
40+ let parameters = [temperature, humidity]
4141 let invokeTask = invoke(dAppAddress, "SaveData", parameters, nil)
4242 if ((invokeTask != invokeTask))
4343 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 adminAddress = Address(base58'3MptJSctbAkp5fddvpQmWYjjKrSoim6dL38')
55
66 let dAppAddress = Address(base58'3N2n4bjG8CjdKiwLPyp3hBM4MDJ3XwMZR5h')
77
88 func searchForUser (address) = {
99 let user = match getString(address) {
1010 case s: String =>
1111 s
1212 case _ =>
1313 "No User"
1414 }
1515 user
1616 }
1717
1818
1919 @Callable(i)
2020 func registerAccount (address,role,name) = if ((i.caller != adminAddress))
2121 then throw("Only the admin can register accounts")
2222 else [StringEntry(address, role), StringEntry((address + "_name"), name)]
2323
2424
2525
2626 @Callable(i)
2727 func deleteAccount (address) = if ((i.caller != adminAddress))
2828 then throw("Only the admin can delete accounts")
2929 else [DeleteEntry(address), DeleteEntry((address + "_name"))]
3030
3131
3232
3333 @Callable(i)
34-func saveData (temperature) = {
35- let caller = i.caller
36- let user = searchForUser(toBase58String(caller.bytes))
34+func saveData (temperature,humidity) = {
35+ let caller = i.callerPublicKey
36+ let user = searchForUser(toBase58String(caller))
3737 if ((user == "No User"))
3838 then throw("User not eligible")
3939 else {
40- let parameters = [temperature]
40+ let parameters = [temperature, humidity]
4141 let invokeTask = invoke(dAppAddress, "SaveData", parameters, nil)
4242 if ((invokeTask != invokeTask))
4343 then throw("Strict value is not equal to itself.")
4444 else nil
4545 }
4646 }
4747
4848

github/deemru/w8io/169f3d6 
22.46 ms