tx · EYsMT9P9yTKJXRvjLVTMnm6NcxwudorTDKq9n9VnhXhA
3N5dk6ALYrURV5F5TY9Ax2ZRNduZ7uHUeGU: -0.01400000 Waves
2019.10.25 18:42 [735828] smart account 3N5dk6ALYrURV5F5TY9Ax2ZRNduZ7uHUeGU > SELF 0.00000000 Waves
{
"type": 13,
"id": "EYsMT9P9yTKJXRvjLVTMnm6NcxwudorTDKq9n9VnhXhA",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1572018127472,
"version": 1,
"sender": "3N5dk6ALYrURV5F5TY9Ax2ZRNduZ7uHUeGU",
"senderPublicKey": "9RGZAkWvfSnebEmAGbHSDZzH1dkNbGBgtyn7mr8ZR9xn",
"proofs": [
"Lm2mLyrJMNHeyvpCAjXNaUadbCdn6VeQECjg31bPuNuEvSETTqGaoJJ3m6Z784vqQxuTnZEhUFHfVvGrbYXDt1u"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAQAAAAAManVsaWVuUHViS2V5AgAAACw2eDNVUUFCSmp1dkdCY2czUExoTDgxRU1xZEM1aEhtTXl6TjFyTGJ1Qm1DdQAAAAEAAAAKaW52b2NhdGlvbgEAAAAJd3JpdGVOb3RlAAAAAQAAAARub3RlBAAAAA1zZW5kZXJBZGRyZXNzCQACWAAAAAEICAUAAAAKaW52b2NhdGlvbgAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAADHNlbmRlclB1YktleQkAAlgAAAABCAUAAAAKaW52b2NhdGlvbgAAAA9jYWxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAADHNlbmRlclB1YktleQUAAAAManVsaWVuUHViS2V5CQAAAgAAAAECAAAAHEp1bGllbiBhcnLDqnRlIGRlIG0nZWNyaXJlISEJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADXNlbmRlckFkZHJlc3MFAAAABG5vdGUFAAAAA25pbAAAAADznlcg",
"chainId": 84,
"height": 735828,
"spentComplexity": 0
}
View: original | compacted
Prev: Djdd5QEvHp8V2sZ2dyC4tLKTLCh4xvxWxgupEWpGfApC
Next: 2LwWDkwsVqnjrou276LiojLECoinWXdAoNnfHn1LQ4Jj
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 | | - | WriteSet([DataEntry(senderAddress, note)]) |
---|
| 9 | + | let senderPubKey = toBase58String(invocation.callerPublicKey) |
---|
| 10 | + | if ((senderPubKey == julienPubKey)) |
---|
| 11 | + | then throw("Julien arrĂȘte de m'ecrire!!") |
---|
| 12 | + | else WriteSet([DataEntry(senderAddress, note)]) |
---|
10 | 13 | | } |
---|
11 | 14 | | |
---|
12 | 15 | | |
---|