tx · 4LWThuebW8dUKH36CSzdsJFoPfU9dihtcuxk7tJYANVf
3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN: -0.01000000 Waves
2021.12.03 12:41 [1817937] smart account 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN > SELF 0.00000000 Waves
{
"type": 13,
"id": "4LWThuebW8dUKH36CSzdsJFoPfU9dihtcuxk7tJYANVf",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1638524522989,
"version": 2,
"chainId": 84,
"sender": "3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN",
"senderPublicKey": "3TJhvM5a7VSAiRyvEVwygRkiPC9ow5nM4LQ252H4vxWK",
"proofs": [
"5ynJyCVq2UsH6hhio3ckZSxsP36QTFTAY8dYWd5o7QJy4xykbxizPsnn2MQaj8JTuT2YXL1j1va9MDLB9XSBMnX4"
],
"script": "base64:AAIFAAAAAAAAAAcIAhIDCgEBAAAAAQAAAAAFY2FuZG8CAAAAIzNNdVc0dDFqQ1hIdDhXUnNIVkxVYXIzMkVudkp4WmFRV0F4AAAAAQAAAAFpAQAAAAZjcmVhdGUAAAABAAAAAnh5BAAAAAN4eXMJAAGkAAAAAQUAAAACeHkDCQAAAAAAAAIFAAAABWNhbmRvCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAAUUAAAAAgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAN4eXMJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwUAAAADbmlsBQAAAAR1bml0CQAAAgAAAAECAAAAINCS0Ysg0L3QtSDQvNC+0LbQtdGC0LUgdG8gY3JlYXRlAAAAAPGF6Ao=",
"height": 1817937,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 3SXTf7EifCNFyFXo8TMX1Y9aL8QuRjWqxPCzMKHSrWd4
Next: 2WzuWjDwCbqZT8Xt1afXHRGPmL2bTmtvD6GPrW2n2n8m
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let isauthor = true |
---|
| 4 | + | let cando = "3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx" |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func create (xy) = { |
---|
8 | 8 | | let xys = toString(xy) |
---|
9 | | - | if (isauthor) |
---|
| 9 | + | if ((cando == toBase58String(i.caller.bytes))) |
---|
10 | 10 | | then $Tuple2([StringEntry(xys, toBase58String(i.caller.bytes))], unit) |
---|
11 | 11 | | else throw("Вы не можете to create") |
---|
12 | 12 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let isauthor = true |
---|
| 4 | + | let cando = "3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx" |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func create (xy) = { |
---|
8 | 8 | | let xys = toString(xy) |
---|
9 | | - | if (isauthor) |
---|
| 9 | + | if ((cando == toBase58String(i.caller.bytes))) |
---|
10 | 10 | | then $Tuple2([StringEntry(xys, toBase58String(i.caller.bytes))], unit) |
---|
11 | 11 | | else throw("Вы не можете to create") |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|