tx · 9N5rCPirTJEYXNaLeH2i3fq85uUGSNbVLLfcyR8M9T7L 3NAg879tKUJh949h21umkwiaRQhwZftz1BE: -0.01400000 Waves 2019.08.09 13:43 [623339] smart account 3NAg879tKUJh949h21umkwiaRQhwZftz1BE > SELF 0.00000000 Waves
{ "type": 13, "id": "9N5rCPirTJEYXNaLeH2i3fq85uUGSNbVLLfcyR8M9T7L", "fee": 1400000, "feeAssetId": null, "timestamp": 1565347402243, "version": 1, "sender": "3NAg879tKUJh949h21umkwiaRQhwZftz1BE", "senderPublicKey": "BqY2jhkQCcbidtQdQZu6f9RV3AkFAS8VPToHxwYu1KdJ", "proofs": [ "AdAffqRPSYa92qCuGwA9tN6LcxtdAXvXaf19CYo6pZwjRbJMvmspxYRHjBJDNMwoCgQ1gXN5vfupcPAxyuy1hJG" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAABZkZXNjcmlwdGlvblVwZGF0ZVByaWNlAAAAAAAF9eEAAAAAAA9saW5rVXBkYXRlUHJpY2UAAAAAAAX14QAAAAAAEXRpY2tlclVwZGF0ZVByaWNlAAAAAAAL68IAAAAAAQAAAAFpAQAAABF1cGRhdGVEZXNjcmlwdGlvbgAAAAMAAAAHYXNzZXRJZAAAAA1pc3N1ZXJBZGRyZXNzAAAAC2Rlc2NyaXB0aW9uBAAAAAVhc3NldAkAA+wAAAABCQEAAAAFdmFsdWUAAAABCQACWQAAAAEFAAAAB2Fzc2V0SWQEAAAAB3BheW1lbnQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAQAAAANY2FsbGVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAABRpc3N1ZXJEZXNjcmlwdGlvbktleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAASaXNzdWVyRGVzY3JpcHRpb25fAgAAAAE8BQAAAAdhc3NldElkAgAAAAE+AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAAdwYXltZW50AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAuZXJyb3IjMS4gVGhlIHNlcnZpY2UgY2FuIG9ubHkgYmUgcGFpZCBpbiB3YXZlcwMJAABnAAAAAggFAAAAB3BheW1lbnQAAAAGYW1vdW50BQAAABZkZXNjcmlwdGlvblVwZGF0ZVByaWNlAwkAAAAAAAACBQAAAA1jYWxsZXJBZGRyZXNzBQAAAA1pc3N1ZXJBZGRyZXNzCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABRpc3N1ZXJEZXNjcmlwdGlvbktleQUAAAALZGVzY3JpcHRpb24FAAAAA25pbAkAAAIAAAABAgAAADdlcnJvciMzLiBPbmx5IGFzc2V0IGlzc3VlciBjYW4gdXBkYXRlIGFzc2V0IGRlc2NyaXB0aW9uCQAAAgAAAAECAAAARGVycm9yIzIuIEluc3VmZmljaWVudCBwYXltZW50IGZvciBhc3NldCBkZXNjcmlwdGlvbiB1cGRhYXRlIHNlcnZpY2UuAAAAAMe7bAw=", "chainId": 84, "height": 623339, "spentComplexity": 0 } View: original | compacted Prev: AnVgXpxpa2TEbjnETi1uvkrKfx6upai7EqYN2vRSYbjb Next: 5bgQwdmxfFfFCcYYDU1y5vycz1imviBojKEciesrKr95 Diff:
Old | New | Differences | |
---|---|---|---|
19 | 19 | then if ((callerAddress == issuerAddress)) | |
20 | 20 | then WriteSet([DataEntry(issuerDescriptionKey, description)]) | |
21 | 21 | else throw("error#3. Only asset issuer can update asset description") | |
22 | - | else throw("error#2. | |
22 | + | else throw("error#2. Insufficient payment for asset description updaate service.") | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 |
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 | 20 | then WriteSet([DataEntry(issuerDescriptionKey, description)]) | |
21 | 21 | else throw("error#3. Only asset issuer can update asset description") | |
22 | - | else throw("error#2. | |
22 | + | else throw("error#2. Insufficient payment for asset description updaate service.") | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 |
github/deemru/w8io/169f3d6 49.29 ms ◑