tx · 6qup54zWm6PD1Zg7KST38z5pWwBSajM2g7WSaTE1vEmT

3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm:  -0.01400000 Waves

2019.08.20 19:54 [639717] smart account 3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm > SELF 0.00000000 Waves

{ "type": 13, "id": "6qup54zWm6PD1Zg7KST38z5pWwBSajM2g7WSaTE1vEmT", "fee": 1400000, "feeAssetId": null, "timestamp": 1566320130864, "version": 1, "sender": "3MsJAaF5QnFSPWt1FbTYg2rZEYGE89zL9xm", "senderPublicKey": "AuwNnJne9DDzFJMVzgSTvELEvJKcS6sAwa1pYot7NSZc", "proofs": [ "4YCJ1iTvAF6cSdHHNNWEwa1SAgMJUo9UY2HzeHyzxEu9ZvysRuKg12nBsz16iZKBnwucNobG9X7VhZ3hthAkNYjG" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAAAAABVvd25lckFjY291bnRQdWJsaWNLZXkBAAAAIJNI3fVW+TejCob9DyZDLn5+jSuvds/LguFUOLKHWspvAQAAAApnZXRLZXlJdGVtAAAAAgAAAAhzdXBwbGllcgAAAAdvcmRlcklECQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAxJTkFSVEVfY2VydF8FAAAAB29yZGVySUQCAAAAAV8JAAJYAAAAAQkAAfcAAAABCQABmwAAAAEFAAAACHN1cHBsaWVyAQAAAA5nZXRLZXlJdGVtRGF0YQAAAAEAAAAEaXRlbQkAASwAAAACBQAAAARpdGVtAgAAAAVfZGF0YQEAAAASZ2V0S2V5SXRlbVN1cHBsaWVyAAAAAQAAAARpdGVtCQABLAAAAAIFAAAABGl0ZW0CAAAABl9vd25lcgAAAAEAAAABaQEAAAAOYWRkQ2VydGlmaWNhdG8AAAACAAAAB29yZGVySUQAAAAEZGF0YQQAAAAPc3VwcGxpZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABGl0ZW0JAQAAAApnZXRLZXlJdGVtAAAAAgUAAAAPc3VwcGxpZXJBZGRyZXNzBQAAAAdvcmRlcklECQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAARpdGVtBQAAAARkYXRhBQAAAANuaWwAAAAArSAr+w==", "chainId": 84, "height": 639717, "spentComplexity": 0 } View: original | compacted Prev: 3YPmLn1ZchfX1d9Y68QTcjhazDSkWWeQV6FnDA2rSaMu Next: B7VqxDeKfKmBa7LSFP7kDPwwCtMyCUAbYvaPT3nQn85D Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let ownerAccountPublicKey = base58'AuwNnJne9DDzFJMVzgSTvELEvJKcS6sAwa1pYot7NSZc'
55
6-func getKeyItem (supplier,orderID) = ("INARTE_cert_" + toBase58String(sha256(toBytes((supplier + orderID)))))
6+func getKeyItem (supplier,orderID) = ((("INARTE_cert_" + orderID) + "_") + toBase58String(sha256(toBytes(supplier))))
77
88
99 func getKeyItemData (item) = (item + "_data")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let ownerAccountPublicKey = base58'AuwNnJne9DDzFJMVzgSTvELEvJKcS6sAwa1pYot7NSZc'
55
6-func getKeyItem (supplier,orderID) = ("INARTE_cert_" + toBase58String(sha256(toBytes((supplier + orderID)))))
6+func getKeyItem (supplier,orderID) = ((("INARTE_cert_" + orderID) + "_") + toBase58String(sha256(toBytes(supplier))))
77
88
99 func getKeyItemData (item) = (item + "_data")
1010
1111
1212 func getKeyItemSupplier (item) = (item + "_owner")
1313
1414
1515 @Callable(i)
1616 func addCertificato (orderID,data) = {
1717 let supplierAddress = toBase58String(i.caller.bytes)
1818 let item = getKeyItem(supplierAddress, orderID)
1919 WriteSet([DataEntry(item, data)])
2020 }
2121
2222

github/deemru/w8io/026f985 
21.49 ms