tx · 2LwWDkwsVqnjrou276LiojLECoinWXdAoNnfHn1LQ4Jj
3N5dk6ALYrURV5F5TY9Ax2ZRNduZ7uHUeGU: -0.01400000 Waves
2019.10.25 18:49 [735832] smart account 3N5dk6ALYrURV5F5TY9Ax2ZRNduZ7uHUeGU > SELF 0.00000000 Waves
{
"type": 13,
"id": "2LwWDkwsVqnjrou276LiojLECoinWXdAoNnfHn1LQ4Jj",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1572018575092,
"version": 1,
"sender": "3N5dk6ALYrURV5F5TY9Ax2ZRNduZ7uHUeGU",
"senderPublicKey": "9RGZAkWvfSnebEmAGbHSDZzH1dkNbGBgtyn7mr8ZR9xn",
"proofs": [
"NNDqZzNEj1HUn6wXgoVR2aZxFcb5KshGB4W24j7371bhFHSHp7VaF8uAZxBAXWjNUqWqYKB9RDZeq3z8wHZwupe"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAQAAAAAManVsaWVuUHViS2V5AgAAACw2eDNVUUFCSmp1dkdCY2czUExoTDgxRU1xZEM1aEhtTXl6TjFyTGJ1Qm1DdQAAAAEAAAAKaW52b2NhdGlvbgEAAAAJd3JpdGVOb3RlAAAAAQAAAARub3RlBAAAAA1zZW5kZXJBZGRyZXNzCQACWAAAAAEICAUAAAAKaW52b2NhdGlvbgAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAADHNlbmRlclB1YktleQkAAlgAAAABCAUAAAAKaW52b2NhdGlvbgAAAA9jYWxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAADHNlbmRlclB1YktleQUAAAAManVsaWVuUHViS2V5CQAAAgAAAAECAAAAHEp1bGllbiBhcnLDqnRlIGRlIG0nZWNyaXJlISEJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAA1zZW5kZXJBZGRyZXNzBQAAAARub3RlBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAA1zZW5kZXJBZGRyZXNzAAAAAAAF9eEABQAAAAR1bml0BQAAAANuaWwAAAAACGF+Xg==",
"chainId": 84,
"height": 735832,
"spentComplexity": 0
}
View: original | compacted
Prev: EYsMT9P9yTKJXRvjLVTMnm6NcxwudorTDKq9n9VnhXhA
Next: none
Diff:
Old | New | | Differences |
---|
9 | 9 | | let senderPubKey = toBase58String(invocation.callerPublicKey) |
---|
10 | 10 | | if ((senderPubKey == julienPubKey)) |
---|
11 | 11 | | then throw("Julien arrĂȘte de m'ecrire!!") |
---|
12 | | - | else WriteSet([DataEntry(senderAddress, note)]) |
---|
| 12 | + | else ScriptResult(WriteSet([DataEntry(senderAddress, note)]), TransferSet([ScriptTransfer(addressFromStringValue(senderAddress), 100000000, unit)])) |
---|
13 | 13 | | } |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let julienPubKey = "6x3UQABJjuvGBcg3PLhL81EMqdC5hHmMyzN1rLbuBmCu" |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(invocation) |
---|
7 | 7 | | func writeNote (note) = { |
---|
8 | 8 | | let senderAddress = toBase58String(invocation.caller.bytes) |
---|
9 | 9 | | let senderPubKey = toBase58String(invocation.callerPublicKey) |
---|
10 | 10 | | if ((senderPubKey == julienPubKey)) |
---|
11 | 11 | | then throw("Julien arrĂȘte de m'ecrire!!") |
---|
12 | | - | else WriteSet([DataEntry(senderAddress, note)]) |
---|
| 12 | + | else ScriptResult(WriteSet([DataEntry(senderAddress, note)]), TransferSet([ScriptTransfer(addressFromStringValue(senderAddress), 100000000, unit)])) |
---|
13 | 13 | | } |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|