tx · AnVgXpxpa2TEbjnETi1uvkrKfx6upai7EqYN2vRSYbjb 3NAg879tKUJh949h21umkwiaRQhwZftz1BE: -0.01400000 Waves 2019.08.09 13:15 [623311] smart account 3NAg879tKUJh949h21umkwiaRQhwZftz1BE > SELF 0.00000000 Waves
{ "type": 13, "id": "AnVgXpxpa2TEbjnETi1uvkrKfx6upai7EqYN2vRSYbjb", "fee": 1400000, "feeAssetId": null, "timestamp": 1565345668310, "version": 1, "sender": "3NAg879tKUJh949h21umkwiaRQhwZftz1BE", "senderPublicKey": "BqY2jhkQCcbidtQdQZu6f9RV3AkFAS8VPToHxwYu1KdJ", "proofs": [ "K29xST3TQ4VfCYpC6BNNX1L9NZRYHgSPf1VpKFZyoF3JaDDJ77dz5rZUHxaUdwFKCyeXtAwQ4nW1WYJGMwZjxsn" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAABZkZXNjcmlwdGlvblVwZGF0ZVByaWNlAAAAAAAF9eEAAAAAAA9saW5rVXBkYXRlUHJpY2UAAAAAAAX14QAAAAAAEXRpY2tlclVwZGF0ZVByaWNlAAAAAAAL68IAAAAAAQAAAAFpAQAAABF1cGRhdGVEZXNjcmlwdGlvbgAAAAMAAAAHYXNzZXRJZAAAAA1pc3N1ZXJBZGRyZXNzAAAAC2Rlc2NyaXB0aW9uBAAAAAVhc3NldAkAA+wAAAABCQEAAAAFdmFsdWUAAAABCQACWQAAAAEFAAAAB2Fzc2V0SWQEAAAAB3BheW1lbnQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAQAAAANY2FsbGVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAABRpc3N1ZXJEZXNjcmlwdGlvbktleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAASaXNzdWVyRGVzY3JpcHRpb25fAgAAAAE8BQAAAAdhc3NldElkAgAAAAE+AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAAdwYXltZW50AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAuZXJyb3IjMS4gVGhlIHNlcnZpY2UgY2FuIG9ubHkgYmUgcGFpZCBpbiB3YXZlcwMJAABnAAAAAggFAAAAB3BheW1lbnQAAAAGYW1vdW50BQAAABZkZXNjcmlwdGlvblVwZGF0ZVByaWNlAwkAAAAAAAACBQAAAA1jYWxsZXJBZGRyZXNzBQAAAA1pc3N1ZXJBZGRyZXNzCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABRpc3N1ZXJEZXNjcmlwdGlvbktleQUAAAALZGVzY3JpcHRpb24FAAAAA25pbAkAAAIAAAABAgAAADdlcnJvciMzLiBPbmx5IGFzc2V0IGlzc3VlciBjYW4gdXBkYXRlIGFzc2V0IGRlc2NyaXB0aW9uCQAAAgAAAAECAAAAN2Vycm9yIzIuIE9ubHkgYXNzZXQgaXNzdWVyIGNhbiB1cGRhdGUgYXNzZXQgZGVzY3JpcHRpb24AAAAAxfz4MA==", "chainId": 84, "height": 623311, "spentComplexity": 0 } View: original | compacted Prev: 5NY9qHCJ2jMSGVPH3aTYBP1najVVGL1S9VxuN7gNgFgT Next: 9N5rCPirTJEYXNaLeH2i3fq85uUGSNbVLLfcyR8M9T7L Diff:
Old | New | Differences | |
---|---|---|---|
17 | 17 | then throw("error#1. The service can only be paid in waves") | |
18 | 18 | else if ((payment.amount >= descriptionUpdatePrice)) | |
19 | 19 | then if ((callerAddress == issuerAddress)) | |
20 | - | then WriteSet([DataEntry( | |
20 | + | then WriteSet([DataEntry(issuerDescriptionKey, description)]) | |
21 | 21 | else throw("error#3. Only asset issuer can update asset description") | |
22 | 22 | else throw("error#2. Only asset issuer can update asset description") | |
23 | 23 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let descriptionUpdatePrice = 100000000 | |
5 | 5 | ||
6 | 6 | let linkUpdatePrice = 100000000 | |
7 | 7 | ||
8 | 8 | let tickerUpdatePrice = 200000000 | |
9 | 9 | ||
10 | 10 | @Callable(i) | |
11 | 11 | func updateDescription (assetId,issuerAddress,description) = { | |
12 | 12 | let asset = assetInfo(value(fromBase58String(assetId))) | |
13 | 13 | let payment = extract(i.payment) | |
14 | 14 | let callerAddress = toBase58String(i.caller.bytes) | |
15 | 15 | let issuerDescriptionKey = ((("issuerDescription_" + "<") + assetId) + ">") | |
16 | 16 | if (isDefined(payment.assetId)) | |
17 | 17 | then throw("error#1. The service can only be paid in waves") | |
18 | 18 | else if ((payment.amount >= descriptionUpdatePrice)) | |
19 | 19 | then if ((callerAddress == issuerAddress)) | |
20 | - | then WriteSet([DataEntry( | |
20 | + | then WriteSet([DataEntry(issuerDescriptionKey, description)]) | |
21 | 21 | else throw("error#3. Only asset issuer can update asset description") | |
22 | 22 | else throw("error#2. Only asset issuer can update asset description") | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 |
github/deemru/w8io/169f3d6 32.48 ms ◑