tx · 7VD8g2Ga1bqhk7xhyRHKSUR5rmXy5veDBLLADWTkSh9C
3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo: -0.01000000 Waves
2022.11.04 12:24 [2302177] smart account 3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo > SELF 0.00000000 Waves
{
"type": 13,
"id": "7VD8g2Ga1bqhk7xhyRHKSUR5rmXy5veDBLLADWTkSh9C",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1667553596311,
"version": 2,
"chainId": 84,
"sender": "3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo",
"senderPublicKey": "Kwu4LYBMntApXv8t7csxV23Kvc3tvak26wMKK56tA4V",
"proofs": [
"3TeACULB8eubnpnkieCuo5uiTbuAbg4WXzvKmKCyTvZvdT3DDD3NtFmsz3zzY8xE4qkM48STXU8mUHusCbijBnVA"
],
"script": "base64:AAIFAAAAAAAAAAoIAhIGCgQIAQgBAAAAAAAAAAEAAAABaQEAAAAHYnV5SXRlbQAAAAQAAAAIbmZ0X25hbWUAAAAGYW1vdW50AAAAD25mdF9kZXNjcmlwdGlvbgAAAAluZnRfcHJpY2UEAAAADG93bmVyQWRkcmVzcwgFAAAAAWkAAAAGY2FsbGVyCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkABCUAAAABBQAAAAxvd25lckFkZHJlc3MCAAAACG5mdF9uYW1lBQAAAAhuZnRfbmFtZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEFAAAADG93bmVyQWRkcmVzcwIAAAAGYW1vdW50BQAAAAZhbW91bnQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEFAAAADG93bmVyQWRkcmVzcwIAAAAPbmZ0X2Rlc2NyaXB0aW9uBQAAAA9uZnRfZGVzY3JpcHRpb24JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkABCUAAAABBQAAAAxvd25lckFkZHJlc3MCAAAACW5mdF9wcmljZQUAAAAJbmZ0X3ByaWNlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAADG93bmVyQWRkcmVzcwUAAAAJbmZ0X3ByaWNlBQAAAAR1bml0BQAAAANuaWwAAAAALrbNzA==",
"height": 2302177,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: ByeBFefV9reFeJdU5rEqEHrrNFqoC6YC8HLX7djaT25V
Next: GjJ2S5f2HEmdTDWRFwmPyZ7GwZB3ohvaxsgz88DCx59D
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func buyItem (nft_name,amount,creator_address,nft_description,nft_price) = { |
---|
| 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 | | |
---|
Full:
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,creator_address,nft_description,nft_price) = { |
---|
| 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 | | |
---|