tx · 8TaoaqAkJDBvdmuA4XXEunTFWJefZkVUQtpJppT43aPT
3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa: -0.01400000 Waves
2019.09.08 13:15 [666962] smart account 3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa > SELF 0.00000000 Waves
{
"type": 13,
"id": "8TaoaqAkJDBvdmuA4XXEunTFWJefZkVUQtpJppT43aPT",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1567937746205,
"version": 1,
"sender": "3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa",
"senderPublicKey": "HktRLq8bnL31myXeh7WVXAuMw8Qb7yrhPfMVxucQVeU",
"proofs": [
"2DiiqsdfLY5fQfDzBg9pDHU79kmCCVAuFMyRDiXvAK6AdSDhrdxYgcfb1DCBpLR6hJg4Wixom23Pf8yUpo26JbH"
],
"script": "base64:AAIDAAAAAAAAAAAAAAABAAAAAAhudWxsSG9tZQIAAAABMAAAAAIAAAABaQEAAAAHc2V0aG9tZQAAAAEAAAAGaG9tZUlkBAAAAAxzZWxsZXJCYXNlNTgJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFd3JpdGUJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADHNlbGxlckJhc2U1OAUAAAAGaG9tZUlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAApzZXRob21lTG9nCQABLAAAAAIJAAEsAAAAAgUAAAAMc2VsbGVyQmFzZTU4AgAAAAQgLT4gBQAAAAZob21lSWQFAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAABXdyaXRlCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAABaQEAAAAEbWFpbgAAAAIAAAAMc2VsbGVyVmVjdG9yAAAABmhvbWVJZAQAAAADcG10CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQ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original | compacted
Prev: 9Xixz2V2zTPUSDazNRKEPTb2pqqLLsxyFVG1FaqxtRXA
Next: EZNSdMNXuCNLWiWxrAE7rUmowspgx7H6aZZti3JBLuqU
Diff:
Old | New | | Differences |
---|
19 | 19 | | then throw("payment is only waves") |
---|
20 | 20 | | else { |
---|
21 | 21 | | let buerBase58 = toBase58String(i.caller.bytes) |
---|
22 | | - | let sellerAddress = Address(sellerVector) |
---|
| 22 | + | let sellerAddress = addressFromPublicKey(sellerVector) |
---|
23 | 23 | | let sellerBase58 = toBase58String(sellerVector) |
---|
24 | 24 | | match getString(this, sellerBase58) { |
---|
25 | 25 | | case home: String => |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let nullHome = "0" |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func sethome (homeId) = { |
---|
8 | 8 | | let sellerBase58 = toBase58String(i.caller.bytes) |
---|
9 | 9 | | let write = WriteSet([DataEntry(sellerBase58, homeId), DataEntry("sethomeLog", ((sellerBase58 + " -> ") + homeId))]) |
---|
10 | 10 | | ScriptResult(write, TransferSet(nil)) |
---|
11 | 11 | | } |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func main (sellerVector,homeId) = { |
---|
17 | 17 | | let pmt = extract(i.payment) |
---|
18 | 18 | | if (isDefined(pmt.assetId)) |
---|
19 | 19 | | then throw("payment is only waves") |
---|
20 | 20 | | else { |
---|
21 | 21 | | let buerBase58 = toBase58String(i.caller.bytes) |
---|
22 | | - | let sellerAddress = Address(sellerVector) |
---|
| 22 | + | let sellerAddress = addressFromPublicKey(sellerVector) |
---|
23 | 23 | | let sellerBase58 = toBase58String(sellerVector) |
---|
24 | 24 | | match getString(this, sellerBase58) { |
---|
25 | 25 | | case home: String => |
---|
26 | 26 | | let transfer = TransferSet([ScriptTransfer(sellerAddress, pmt.amount, pmt.assetId)]) |
---|
27 | 27 | | let write = WriteSet([DataEntry(sellerBase58, nullHome), DataEntry(buerBase58, homeId), DataEntry("mainLog", ((sellerBase58 + " -> ") + buerBase58))]) |
---|
28 | 28 | | ScriptResult(write, transfer) |
---|
29 | 29 | | case _ => |
---|
30 | 30 | | throw("saller ") |
---|
31 | 31 | | } |
---|
32 | 32 | | } |
---|
33 | 33 | | } |
---|
34 | 34 | | |
---|
35 | 35 | | |
---|