tx · AmXRwinBGVVNQ3bBwgwbGana759mJWuvVp9WB9ynQwWm
3NBHyQ67TPHySpoiugp35ZBDmy57KGbLiqH: -0.09000000 Waves
2021.03.18 19:29 [1443420] smart account 3NBHyQ67TPHySpoiugp35ZBDmy57KGbLiqH > SELF 0.00000000 Waves
{
"type": 13,
"id": "AmXRwinBGVVNQ3bBwgwbGana759mJWuvVp9WB9ynQwWm",
"fee": 9000000,
"feeAssetId": null,
"timestamp": 1616085028886,
"version": 2,
"chainId": 84,
"sender": "3NBHyQ67TPHySpoiugp35ZBDmy57KGbLiqH",
"senderPublicKey": "BEhKtjrMZynwX3AJB6WJbFrM6UxW9ytKVsn1nRb7pKrX",
"proofs": [
"3yLxtY61RSnxUKqM4LKun6WaNRmTUxSfro9yenqQgTiYz8Av1CDceZNtxUirHw6dt5tQh9unFZb3TucrtAe4izRc"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAQEAAAATZ2V0RGF0YUZyb21DdXN0b21lcgAAAAIAAAADa2V5AAAAA2FkcgQAAAAEZGF0YQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAANhZHIFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAAFAAAABGRhdGEAAAABAAAAAWkBAAAAC3BlcmZvbU9yZGVyAAAAAQAAAARkYXRlBAAAAA1jYWxsZXJBZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkEAAAABmZpZWxkMQkBAAAAE2dldERhdGFGcm9tQ3VzdG9tZXIAAAACCQABLAAAAAIJAAEsAAAAAgkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkCAAAAIF8vT1JERVJTMDUvSURPQy9FRElfREM0MC9NRVNUWVBfBQAAAARkYXRlBQAAAA1jYWxsZXJBZGRyZXNzAwkBAAAAAiE9AAAAAgUAAAAGZmllbGQxAgAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AgAAACNfL0dFVklTRURJMDEvSGVhZGVyL05hY2hyaWNodGVudHlwXwUAAAAEZGF0ZQUAAAAGZmllbGQxBQAAAANuaWwJAAACAAAAAQIAAAALZmllbGQgZW1wdHkAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24GBtAs70M=",
"height": 1443420,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 9sKzPBkvx1kh3qQAT2UyUXuMD39AEa88YFAChX5LMCYL
Next: 4VqonuYj5BF2RF8rQRXtcSQXQL4hmgroV8S2ch2VNbPK
Diff:
Old | New | | Differences |
---|
16 | 16 | | func perfomOrder (date) = { |
---|
17 | 17 | | let callerAddress = addressFromPublicKey(i.callerPublicKey) |
---|
18 | 18 | | let field1 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/EDI_DC40/MESTYP_") + date), callerAddress) |
---|
19 | | - | if ((field1 == "")) |
---|
| 19 | + | if ((field1 != "")) |
---|
20 | 20 | | then [StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Nachrichtentyp_") + date), field1)] |
---|
21 | 21 | | else throw("field empty") |
---|
22 | 22 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func getDataFromCustomer (key,adr) = { |
---|
5 | 5 | | let data = match getString(adr, key) { |
---|
6 | 6 | | case a: String => |
---|
7 | 7 | | a |
---|
8 | 8 | | case _ => |
---|
9 | 9 | | "" |
---|
10 | 10 | | } |
---|
11 | 11 | | data |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func perfomOrder (date) = { |
---|
17 | 17 | | let callerAddress = addressFromPublicKey(i.callerPublicKey) |
---|
18 | 18 | | let field1 = getDataFromCustomer(((toBase58String(i.callerPublicKey) + "_/ORDERS05/IDOC/EDI_DC40/MESTYP_") + date), callerAddress) |
---|
19 | | - | if ((field1 == "")) |
---|
| 19 | + | if ((field1 != "")) |
---|
20 | 20 | | then [StringEntry(((toBase58String(i.callerPublicKey) + "_/GEVISEDI01/Header/Nachrichtentyp_") + date), field1)] |
---|
21 | 21 | | else throw("field empty") |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | @Verifier(tx) |
---|
26 | 26 | | func verify () = match tx { |
---|
27 | 27 | | case _: DataTransaction => |
---|
28 | 28 | | true |
---|
29 | 29 | | case _: SetScriptTransaction => |
---|
30 | 30 | | true |
---|
31 | 31 | | case _ => |
---|
32 | 32 | | true |
---|
33 | 33 | | } |
---|
34 | 34 | | |
---|