tx · EnoteMbGMUENak2bwXcSCAKpgUyquFypFQdFpndwEq3N
3N6TWF1n3WohTkKrR7MbTJfa9Bk5fwy9tak: -0.01400000 Waves
2019.10.25 15:03 [735626] smart account 3N6TWF1n3WohTkKrR7MbTJfa9Bk5fwy9tak > SELF 0.00000000 Waves
{
"type": 13,
"id": "EnoteMbGMUENak2bwXcSCAKpgUyquFypFQdFpndwEq3N",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1572005051737,
"version": 1,
"sender": "3N6TWF1n3WohTkKrR7MbTJfa9Bk5fwy9tak",
"senderPublicKey": "5ZQhvV8Zg4eMgFAFswEv8cgYAUwmTpCQvrzm9TGSjQ9c",
"proofs": [
"5ihNxfQzxXmMiKsw9RiKGPvvADh6oYvYvmGNVwdo5XjBPwJTA7ia7R77JxhnwW2Lpxgc4tfiFVP7S96EsveKzmo4"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAQAAAAAManVsaWVuUHViS2V5AgAAACw0Z0hUSHo4UHN0NGh6VHhoRkpHWnBWNWhnU1o4WDluQTRMNTMzczZZSHZnTAAAAAEAAAAKaW52b2NhdGlvbgEAAAAJd3JpdGVOb3RlAAAAAQAAAARub3RlBAAAAA1zZW5kZXJBZGRyZXNzCQACWAAAAAEICAUAAAAKaW52b2NhdGlvbgAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAADHNlbmRlclB1YktleQkAAlgAAAABCAUAAAAKaW52b2NhdGlvbgAAAA9jYWxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAADHNlbmRlclB1YktleQUAAAAManVsaWVuUHViS2V5CQAAAgAAAAECAAAAHkp1bGllbiBhcnLDqnRlIGRlIG0nw6ljcmlyZSEhIQkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADXNlbmRlckFkZHJlc3MFAAAABG5vdGUFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAADXNlbmRlckFkZHJlc3MAAAAAAAX14QAFAAAABHVuaXQFAAAAA25pbAAAAAAfYWER",
"chainId": 84,
"height": 735626,
"spentComplexity": 0
}
View: original | compacted
Prev: 73Fw3M9YDcjmxovpfaNBA6NHgVUPf9UTRvwxriYyx3SH
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'écrire!!!") |
---|
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 = "4gHTHz8Pst4hzTxhFJGZpV5hgSZ8X9nA4L533s6YHvgL" |
---|
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'écrire!!!") |
---|
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 | | |
---|