tx · E5m1BFr7cNoebVYRfmAzLpEQUz9FJPX1Rq2ooWT8MEqA 3MvUPcLYNFkmNzkA2h8jVU1fVK416VCT3hR: -0.01000000 Waves 2022.11.04 12:25 [2302180] smart account 3MvUPcLYNFkmNzkA2h8jVU1fVK416VCT3hR > SELF 0.00000000 Waves
{ "type": 13, "id": "E5m1BFr7cNoebVYRfmAzLpEQUz9FJPX1Rq2ooWT8MEqA", "fee": 1000000, "feeAssetId": null, "timestamp": 1667553784344, "version": 2, "chainId": 84, "sender": "3MvUPcLYNFkmNzkA2h8jVU1fVK416VCT3hR", "senderPublicKey": "GjnhUMpwQus4JiztKNVi1bLKtwBS2UT3YpxVyqsYB4KG", "proofs": [ "5NoQ67nkGmngpmQexqMy1niqjnPHw5BBu2b88nfMa3Vjdjrj6gPpzS7ecwwypE5UoU92zQ7MsHwkZoTSHYnvCfWx" ], "script": "base64:AAIFAAAAAAAAAAoIAhIGCgQIAQgBAAAAAAAAAAEAAAABaQEAAAAHYnV5SXRlbQAAAAQAAAAIbmZ0X25hbWUAAAAGYW1vdW50AAAAD25mdF9kZXNjcmlwdGlvbgAAAAluZnRfcHJpY2UEAAAADG93bmVyQWRkcmVzcwgFAAAAAWkAAAAGY2FsbGVyCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkABCUAAAABBQAAAAxvd25lckFkZHJlc3MCAAAACG5mdF9uYW1lBQAAAAhuZnRfbmFtZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEFAAAADG93bmVyQWRkcmVzcwIAAAAGYW1vdW50BQAAAAZhbW91bnQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEFAAAADG93bmVyQWRkcmVzcwIAAAAPbmZ0X2Rlc2NyaXB0aW9uBQAAAA9uZnRfZGVzY3JpcHRpb24JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkABCUAAAABBQAAAAxvd25lckFkZHJlc3MCAAAACW5mdF9wcmljZQUAAAAJbmZ0X3ByaWNlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAADG93bmVyQWRkcmVzcwUAAAAJbmZ0X3ByaWNlBQAAAAR1bml0BQAAAANuaWwAAAAALrbNzA==", "height": 2302180, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8LvUcmjwtPzxisufx5B4beEy6GWsoTxR6thFxJmmf6Fo Next: 66Lk7EKi6rj2pQ5SLW77WvbCQHJF6sucavrxe6hMxMJY Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | - | func buyItem (nft_name,amount | |
7 | + | func buyItem (nft_name,amount,nft_description,nft_price) = { | |
8 | 8 | let ownerAddress = i.caller | |
9 | - | [StringEntry("nft_name", nft_name), IntegerEntry("amount", amount), StringEntry("nft_description", nft_description), IntegerEntry("nft_price", nft_price), ScriptTransfer(ownerAddress, nft_price, unit) | |
9 | + | [StringEntry((toString(ownerAddress) + "nft_name"), nft_name), IntegerEntry((toString(ownerAddress) + "amount"), amount), StringEntry((toString(ownerAddress) + "nft_description"), nft_description), IntegerEntry((toString(ownerAddress) + "nft_price"), nft_price), ScriptTransfer(ownerAddress, nft_price, unit)] | |
10 | 10 | } | |
11 | 11 | ||
12 | 12 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | - | func buyItem (nft_name,amount | |
7 | + | func buyItem (nft_name,amount,nft_description,nft_price) = { | |
8 | 8 | let ownerAddress = i.caller | |
9 | - | [StringEntry("nft_name", nft_name), IntegerEntry("amount", amount), StringEntry("nft_description", nft_description), IntegerEntry("nft_price", nft_price), ScriptTransfer(ownerAddress, nft_price, unit) | |
9 | + | [StringEntry((toString(ownerAddress) + "nft_name"), nft_name), IntegerEntry((toString(ownerAddress) + "amount"), amount), StringEntry((toString(ownerAddress) + "nft_description"), nft_description), IntegerEntry((toString(ownerAddress) + "nft_price"), nft_price), ScriptTransfer(ownerAddress, nft_price, unit)] | |
10 | 10 | } | |
11 | 11 | ||
12 | 12 |
github/deemru/w8io/169f3d6 44.39 ms ◑