tx · FuhbuVzz8g6T473id97TwMneUTr3i5K1cSxHYRb2b4He
3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa: -0.01400000 Waves
2019.09.08 11:28 [666860] smart account 3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa > SELF 0.00000000 Waves
{
"type": 13,
"id": "FuhbuVzz8g6T473id97TwMneUTr3i5K1cSxHYRb2b4He",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1567931417156,
"version": 1,
"sender": "3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa",
"senderPublicKey": "HktRLq8bnL31myXeh7WVXAuMw8Qb7yrhPfMVxucQVeU",
"proofs": [
"26EzmWhEamNrpKjuwNHjRV8coYGeYAYy69skJ7Xf7kd2cVz12g1M3Xsk4YoerR3Zb7KtCHHiTQUCkA4e4xxf3XGL"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAgAAAAFpAQAAAAdzZXRob21lAAAAAQAAAAZob21lSWQEAAAAFXNlbGxlclB1YmxpY0tleUJhc2U1OAkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkEAAAABXdyaXRlCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABVzZWxsZXJQdWJsaWNLZXlCYXNlNTgFAAAABmhvbWVJZAUAAAADbmlsCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgUAAAAFd3JpdGUJAQAAAAtUcmFuc2ZlclNldAAAAAEFAAAAA25pbAAAAAFpAQAAAARtYWluAAAAAgAAAA9zZWxsZXJQdWJsaWNLZXkAAAAGaG9tZUlkBAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAVcGF5bWVudCBpcyBvbmx5IHdhdmVzBAAAABNidWVyUHVibGljS2V5QmFzZTU4CQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAAVc2VsbGVyUHVibGljS2V5QmFzZTU4CQACWAAAAAEFAAAAD3NlbGxlclB1YmxpY0tleQQAAAAPZGF0YUZyb21TdG9yYWdlCQAEHQAAAAIFAAAABHRoaXMFAAAAFXNlbGxlclB1YmxpY0tleUJhc2U1OAMJAAAAAAAAAgUAAAAPZGF0YUZyb21TdG9yYWdlAgAAAAEwCQAAAgAAAAECAAAAD3NlbGxlciBob21lbGVzcwQAAAAIdHJhbnNmZXIJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABBQAAAA9zZWxsZXJQdWJsaWNLZXkIBQAAAANwbXQAAAAGYW1vdW50BQAAAAR1bml0BQAAAANuaWwEAAAABXdyaXRlCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABVzZWxsZXJQdWJsaWNLZXlCYXNlNTgCAAAAATAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAE2J1ZXJQdWJsaWNLZXlCYXNlNTgFAAAABmhvbWVJZAUAAAADbmlsCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgUAAAAFd3JpdGUFAAAACHRyYW5zZmVyAAAAAFNIBbk=",
"chainId": 84,
"height": 666860,
"spentComplexity": 0
}
View: original | compacted
Prev: 5aZQGEin1vsHTqwVLffufFx1BSQNW9QZHmaDJ5ebLXLq
Next: 5JEv5kQkKPcYBj2k5pnRmsVtrLJmew4Zc2x6a2M6aUbt
Diff:
Old | New | | Differences |
---|
21 | 21 | | let g = toBase58String(a.callerPublicKey) |
---|
22 | 22 | | let c = toBase58String(e) |
---|
23 | 23 | | let h = getString(this, c) |
---|
24 | | - | if ((h != "0")) |
---|
25 | | - | then { |
---|
| 24 | + | if ((h == "0")) |
---|
| 25 | + | then throw("seller homeless") |
---|
| 26 | + | else { |
---|
26 | 27 | | let i = TransferSet([ScriptTransfer(Address(e), f.amount, unit)]) |
---|
27 | 28 | | let d = WriteSet([DataEntry(c, "0"), DataEntry(g, b)]) |
---|
28 | 29 | | ScriptResult(d, i) |
---|
29 | 30 | | } |
---|
30 | | - | else throw("seller homeless") |
---|
31 | 31 | | } |
---|
32 | 32 | | } |
---|
33 | 33 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func sethome (b) = { |
---|
8 | 8 | | let c = toBase58String(a.callerPublicKey) |
---|
9 | 9 | | let d = WriteSet([DataEntry(c, b)]) |
---|
10 | 10 | | ScriptResult(d, TransferSet(nil)) |
---|
11 | 11 | | } |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(a) |
---|
16 | 16 | | func main (e,b) = { |
---|
17 | 17 | | let f = extract(a.payment) |
---|
18 | 18 | | if (isDefined(f.assetId)) |
---|
19 | 19 | | then throw("payment is only waves") |
---|
20 | 20 | | else { |
---|
21 | 21 | | let g = toBase58String(a.callerPublicKey) |
---|
22 | 22 | | let c = toBase58String(e) |
---|
23 | 23 | | let h = getString(this, c) |
---|
24 | | - | if ((h != "0")) |
---|
25 | | - | then { |
---|
| 24 | + | if ((h == "0")) |
---|
| 25 | + | then throw("seller homeless") |
---|
| 26 | + | else { |
---|
26 | 27 | | let i = TransferSet([ScriptTransfer(Address(e), f.amount, unit)]) |
---|
27 | 28 | | let d = WriteSet([DataEntry(c, "0"), DataEntry(g, b)]) |
---|
28 | 29 | | ScriptResult(d, i) |
---|
29 | 30 | | } |
---|
30 | | - | else throw("seller homeless") |
---|
31 | 31 | | } |
---|
32 | 32 | | } |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|