tx · 7okm9nmLJczhmmWFMgTLKNUdZcWkj2zJWvCGgwZH9uFe

3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6:  -0.09000000 Waves

2021.06.08 19:31 [1561627] smart account 3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6 > SELF 0.00000000 Waves

{ "type": 13, "id": "7okm9nmLJczhmmWFMgTLKNUdZcWkj2zJWvCGgwZH9uFe", "fee": 9000000, "feeAssetId": null, "timestamp": 1623169914819, "version": 2, "chainId": 84, "sender": "3NApHaksvsb9ZLCMrFNmz4AnUpV5EEytdG6", "senderPublicKey": "G6gPQLsHXcXB4mNCeRfD2nra9dBGiPpeXEKYz1oWTzZ1", "proofs": [ "86cshfe8wTt22cHTGNhWxUhv9Fzh2GwwqGWfrkNxz9QVUxmtfS63zdnmgwkKYUMHgKvFjT4k5H3iYt1BiksJGEB" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAQEAAAATZ2V0RGF0YUZyb21DdXN0b21lcgAAAAIAAAADYWRyAAAAA2tleQQAAAAEZGF0YQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAANhZHIFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAAFAAAABGRhdGEAAAABAAAAAWkBAAAAB2NoZWNrQlQAAAAABAAAAAlsd0FkcmVzc2UJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAALa29vcEFkcmVzc2UJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAGbAAAAAQIAAAAjM05CcHRMTDdoSmVORXZUVnhIQnFWdFcxY3laMkhuUXdROVYEAAAACXNlYXJjaEtleQIAAAAMdGVzdFNDc3RyaW5nBAAAAApzZWFyY2hLZXkyAgAAAAt0ZXN0U0NtdWx0aQQAAAAGbHdEYXRhCQEAAAATZ2V0RGF0YUZyb21DdXN0b21lcgAAAAIFAAAACWx3QWRyZXNzZQUAAAAJc2VhcmNoS2V5BAAAAAhrb29wRGF0YQkBAAAAE2dldERhdGFGcm9tQ3VzdG9tZXIAAAACBQAAAAtrb29wQWRyZXNzZQUAAAAJc2VhcmNoS2V5BAAAAAVpbmRleAAAAAAAAAAAAAMJAAAAAAAAAgUAAAAGbHdEYXRhBQAAAAhrb29wRGF0YQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAp0ZXN0T3V0cHV0AgAAACVWZXJnbGVpY2hlIFN0cmluZ3dlcnRlIGF1cyAyIEFjY291bnRzCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAACWx3QWRyZXNzZQAAAAAAAA9CQAgFAAAAAWkAAAAKZmVlQXNzZXRJZAUAAAADbmlsCQAAAgAAAAECAAAAMXZlcmdsZWljaCBkZXIgRGF0ZW4gYXVzIDIgQWNjcyBoYXQgbmljaHQgZ2VrbGFwcHQAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24GBq6MWQI=", "height": 1561627, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6qAMzNwnuLoN2N2bBWcF6JTKU3P5KQHHGUpoNSD7Wi4B Next: B7JP1pK35WZBrnk2zivNjCUMwiK2WvarMyXDgy97UGgK Diff:
OldNewDifferences
1414
1515 @Callable(i)
1616 func checkBT () = {
17- let kundenAdresse = addressFromPublicKey(i.callerPublicKey)
17+ let lwAdresse = addressFromPublicKey(i.callerPublicKey)
18+ let koopAdresse = addressFromPublicKey(toBytes("3NBptLL7hJeNEvTVxHBqVtW1cyZ2HnQwQ9V"))
1819 let searchKey = "testSCstring"
1920 let searchKey2 = "testSCmulti"
20- let testData = getDataFromCustomer(kundenAdresse, searchKey)
21- let multi = getDataFromCustomer(kundenAdresse, searchKey2)
22- if (if ((parseIntValue(testData) >= 15))
23- then (parseIntValue(multi) >= 5)
24- else false)
25- then [StringEntry("testOutput", "Vergleiche zwei Werte gleichzeitig mit Int hat geklappt(15&5)"), ScriptTransfer(kundenAdresse, 1000000, i.feeAssetId)]
26- else throw("Vergleiche StringToInt mit Int hat nicht geklappt")
21+ let lwData = getDataFromCustomer(lwAdresse, searchKey)
22+ let koopData = getDataFromCustomer(koopAdresse, searchKey)
23+ let index = 0
24+ if ((lwData == koopData))
25+ then [StringEntry("testOutput", "Vergleiche Stringwerte aus 2 Accounts"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)]
26+ else throw("vergleich der Daten aus 2 Accs hat nicht geklappt")
2727 }
2828
2929
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getDataFromCustomer (adr,key) = {
55 let data = match getString(adr, key) {
66 case a: String =>
77 a
88 case _ =>
99 ""
1010 }
1111 data
1212 }
1313
1414
1515 @Callable(i)
1616 func checkBT () = {
17- let kundenAdresse = addressFromPublicKey(i.callerPublicKey)
17+ let lwAdresse = addressFromPublicKey(i.callerPublicKey)
18+ let koopAdresse = addressFromPublicKey(toBytes("3NBptLL7hJeNEvTVxHBqVtW1cyZ2HnQwQ9V"))
1819 let searchKey = "testSCstring"
1920 let searchKey2 = "testSCmulti"
20- let testData = getDataFromCustomer(kundenAdresse, searchKey)
21- let multi = getDataFromCustomer(kundenAdresse, searchKey2)
22- if (if ((parseIntValue(testData) >= 15))
23- then (parseIntValue(multi) >= 5)
24- else false)
25- then [StringEntry("testOutput", "Vergleiche zwei Werte gleichzeitig mit Int hat geklappt(15&5)"), ScriptTransfer(kundenAdresse, 1000000, i.feeAssetId)]
26- else throw("Vergleiche StringToInt mit Int hat nicht geklappt")
21+ let lwData = getDataFromCustomer(lwAdresse, searchKey)
22+ let koopData = getDataFromCustomer(koopAdresse, searchKey)
23+ let index = 0
24+ if ((lwData == koopData))
25+ then [StringEntry("testOutput", "Vergleiche Stringwerte aus 2 Accounts"), ScriptTransfer(lwAdresse, 1000000, i.feeAssetId)]
26+ else throw("vergleich der Daten aus 2 Accs hat nicht geklappt")
2727 }
2828
2929
3030 @Verifier(tx)
3131 func verify () = match tx {
3232 case _: DataTransaction =>
3333 true
3434 case _: SetScriptTransaction =>
3535 true
3636 case _ =>
3737 true
3838 }
3939

github/deemru/w8io/026f985 
34.96 ms