tx · 37rekstVV38WFASTnqfjku6RfPGYWHD3ZPLmEw37oB41

3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa:  -0.01400000 Waves

2019.09.08 12:19 [666908] smart account 3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa > SELF 0.00000000 Waves

{ "type": 13, "id": "37rekstVV38WFASTnqfjku6RfPGYWHD3ZPLmEw37oB41", "fee": 1400000, "feeAssetId": null, "timestamp": 1567934351465, "version": 1, "sender": "3MvqUEAdK8oa1jDS82eqYYVoHTX3S71rRPa", "senderPublicKey": "HktRLq8bnL31myXeh7WVXAuMw8Qb7yrhPfMVxucQVeU", "proofs": [ "AGESby393knJ7jrV5yzqMofCosLV9CYuPD8UzmoBQRcxotfU9DJy1oomMFSU1KeqH1xDLw2YnLS2WXDKrjwsap8" ], "script": "base64:AAIDAAAAAAAAAAAAAAABAAAAAAhudWxsSG9tZQIAAAABMAAAAAIAAAABaQEAAAAHc2V0aG9tZQAAAAEAAAAGaG9tZUlkBAAAAAxzZWxsZXJCYXNlNTgJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFd3JpdGUJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADHNlbGxlckJhc2U1OAUAAAAGaG9tZUlkBQAAAANuaWwJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAAV3cml0ZQkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsAAAAAWkBAAAABG1haW4AAAACAAAAD3NlbGxlclB1YmxpY0tleQAAAAZob21lSWQEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAABVwYXltZW50IGlzIG9ubHkgd2F2ZXMEAAAACmJ1ZXJCYXNlNTgJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAANc2VsbGVyQWRkcmVzcwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAPc2VsbGVyUHVibGljS2V5BAAAAAxzZWxsZXJCYXNlNTgJAAJYAAAAAQgFAAAADXNlbGxlckFkZHJlc3MAAAAFYnl0ZXMEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAMc2VsbGVyQmFzZTU4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAABGhvbWUFAAAAByRtYXRjaDAEAAAACHRyYW5zZmVyCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAADXNlbGxlckFkZHJlc3MIBQAAAANwbXQAAAAGYW1vdW50BQAAAAR1bml0BQAAAANuaWwEAAAABXdyaXRlCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAxzZWxsZXJCYXNlNTgFAAAACG51bGxIb21lCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAApidWVyQmFzZTU4BQAAAAZob21lSWQFAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAABXdyaXRlBQAAAAh0cmFuc2ZlcgQAAAAFd3JpdGUJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADHNlbGxlckJhc2U1OAIAAAACTk4FAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAABXdyaXRlCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAAAg24XMA==", "chainId": 84, "height": 666908, "spentComplexity": 0 } View: original | compacted Prev: 5hKueMB8phy1UkvXYMosTHRUbCk4eb1yUQbM2Z5UGwUQ Next: 9sXGwX4trZ5jkpCSGBTgGZg9Uu4M1Mhyg24ZL3dGP3k1 Diff:
OldNewDifferences
2323 let sellerBase58 = toBase58String(sellerAddress.bytes)
2424 match getString(this, sellerBase58) {
2525 case home: String =>
26- let transfer = TransferSet([ScriptTransfer(Address(sellerPublicKey), pmt.amount, unit)])
26+ let transfer = TransferSet([ScriptTransfer(sellerAddress, pmt.amount, unit)])
2727 let write = WriteSet([DataEntry(sellerBase58, nullHome), DataEntry(buerBase58, homeId)])
2828 ScriptResult(write, transfer)
2929 case _ =>
30- let write = WriteSet([DataEntry(sellerBase58, "N")])
30+ let write = WriteSet([DataEntry(sellerBase58, "NN")])
3131 ScriptResult(write, TransferSet(nil))
3232 }
3333 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let nullHome = "0"
55
66 @Callable(i)
77 func sethome (homeId) = {
88 let sellerBase58 = toBase58String(i.caller.bytes)
99 let write = WriteSet([DataEntry(sellerBase58, homeId)])
1010 ScriptResult(write, TransferSet(nil))
1111 }
1212
1313
1414
1515 @Callable(i)
1616 func main (sellerPublicKey,homeId) = {
1717 let pmt = extract(i.payment)
1818 if (isDefined(pmt.assetId))
1919 then throw("payment is only waves")
2020 else {
2121 let buerBase58 = toBase58String(i.caller.bytes)
2222 let sellerAddress = addressFromPublicKey(sellerPublicKey)
2323 let sellerBase58 = toBase58String(sellerAddress.bytes)
2424 match getString(this, sellerBase58) {
2525 case home: String =>
26- let transfer = TransferSet([ScriptTransfer(Address(sellerPublicKey), pmt.amount, unit)])
26+ let transfer = TransferSet([ScriptTransfer(sellerAddress, pmt.amount, unit)])
2727 let write = WriteSet([DataEntry(sellerBase58, nullHome), DataEntry(buerBase58, homeId)])
2828 ScriptResult(write, transfer)
2929 case _ =>
30- let write = WriteSet([DataEntry(sellerBase58, "N")])
30+ let write = WriteSet([DataEntry(sellerBase58, "NN")])
3131 ScriptResult(write, TransferSet(nil))
3232 }
3333 }
3434 }
3535
3636

github/deemru/w8io/026f985 
43.68 ms