tx · AmnHBbcw2wyEavGEydMgJ7sh7fBDsS7ErL43TNcBBtPT
3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx: -0.01000000 Waves
2023.03.24 13:14 [2503954] smart account 3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx > SELF 0.00000000 Waves
{
"type": 13,
"id": "AmnHBbcw2wyEavGEydMgJ7sh7fBDsS7ErL43TNcBBtPT",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1679653066184,
"version": 2,
"chainId": 84,
"sender": "3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx",
"senderPublicKey": "DyeDJ3fgwVVux2WRkxpLU9BbVjTM96AyV58b7bRFzCBx",
"proofs": [
"4HR3RmokZ5VAbsVAdodMrAhMAMKthCsSqysJvwCzcXBYQwxsb6nQ45oien9QATjJsUaELaHL6ccribHudFf5NSjz"
],
"script": "base64:BgIHCAISAwoBGAABAWkBBmJ1eU5mdAEEbmZ0cwQFYnV5ZXIIBQFpBmNhbGxlcgQDbmZ0CQCQAwEFBG5mdHMEDGJ1eWVyQmFsYW5jZQkA8AcCBQVidXllcgEghWOVo/OIjrDeDBeOCE6/mj+SuybbOuh2jhbcFCIqSH4EBmFtb3VudAkBBXZhbHVlAQgJAJEDAggFAWkIcGF5bWVudHMAAAZhbW91bnQEBmxlbmd0aAkAsQIBAgVuZnRJZAQGb25lUHJvCQDZBAEJAJEDAgUEbmZ0cwAABAZ0d29Qcm8JANkEAQkAkQMCBQRuZnRzAAEJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUFYnV5ZXIAAQUGb25lUHJvCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFBWJ1eWVyAAEFBnR3b1BybwUDbmlsANCbjt0=",
"height": 2503954,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: AtMDE5CQiq6cuhzQt31J6LrsY97hwXkQXZD8ysYSUxUh
Next: DwFWPbzX6oQRGuwjHw9JokHNv3GwHpzMUR48YVsYp57A
Diff:
Old | New | | Differences |
---|
12 | 12 | | let length = size("nftId") |
---|
13 | 13 | | let onePro = fromBase58String(nfts[0]) |
---|
14 | 14 | | let twoPro = fromBase58String(nfts[1]) |
---|
15 | | - | [StringEntry(toString(i.caller), toString(amount)), ScriptTransfer(buyer, 1, onePro), ScriptTransfer(buyer, 1, twoPro)] |
---|
| 15 | + | [ScriptTransfer(buyer, 1, onePro), ScriptTransfer(buyer, 1, twoPro)] |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func buyNft (nfts) = { |
---|
8 | 8 | | let buyer = i.caller |
---|
9 | 9 | | let nft = size(nfts) |
---|
10 | 10 | | let buyerBalance = assetBalance(buyer, base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq') |
---|
11 | 11 | | let amount = value(i.payments[0].amount) |
---|
12 | 12 | | let length = size("nftId") |
---|
13 | 13 | | let onePro = fromBase58String(nfts[0]) |
---|
14 | 14 | | let twoPro = fromBase58String(nfts[1]) |
---|
15 | | - | [StringEntry(toString(i.caller), toString(amount)), ScriptTransfer(buyer, 1, onePro), ScriptTransfer(buyer, 1, twoPro)] |
---|
| 15 | + | [ScriptTransfer(buyer, 1, onePro), ScriptTransfer(buyer, 1, twoPro)] |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|