tx · 7QPzp5HZ7imYkEDm4aP8sK154Xuja4r7B7DrQhi1KrGg
3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw: -0.01000000 Waves
2023.02.03 15:41 [2433452] smart account 3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw > SELF 0.00000000 Waves
{
"type": 13,
"id": "7QPzp5HZ7imYkEDm4aP8sK154Xuja4r7B7DrQhi1KrGg",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1675428297771,
"version": 2,
"chainId": 84,
"sender": "3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw",
"senderPublicKey": "4NDsd3dGKXuKLCoSbYvcWCX276K9ShP75cs9HTBMLJEN",
"proofs": [
"5xKhcXFskQRZxKz45pos4xF8MNwMxCagnGVMgsv6JU3izMV8yddj5M47frrdNHrrBdTEJKdWCYpNvaceEtiizVdH"
],
"script": "base64:BgIHCAISAwoBCAABAWkBB21pbnROZnQBDWlwZnNJbWFnZUhhc2gECXJlY2lwaWVudAgFAWkGY2FsbGVyBAVhc3NldAkAwggFAgdkb25rZXktAglmaXJzdCBOZnQAAgAABwQHYXNzZXRJZAkAuAgBBQVhc3NldAkAzAgCBQVhc3NldAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJANgEAQUHYXNzZXRJZAIFX2lwZnMFDWlwZnNJbWFnZUhhc2gJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUJcmVjaXBpZW50AAIFB2Fzc2V0SWQFA25pbAD3KxLR",
"height": 2433452,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4zpKwyrtz53zBnGZ6dhBEHq2RKv8rAeie6YoeEgD9Bba
Next: 6rejNUYSnZJsP1H92t7qAQbHcGBBfrfTGhQzvco2CggU
Diff:
Old | New | | Differences |
---|
7 | 7 | | func mintNft (ipfsImageHash) = { |
---|
8 | 8 | | let recipient = i.caller |
---|
9 | 9 | | let asset = Issue("donkey-", "first Nft", 2, 0, false) |
---|
10 | | - | let assetId = toBase58String(calculateAssetId(asset)) |
---|
11 | | - | [asset, StringEntry((assetId + "_ipfs"), ipfsImageHash)] |
---|
| 10 | + | let assetId = calculateAssetId(asset) |
---|
| 11 | + | [asset, StringEntry((toBase58String(assetId) + "_ipfs"), ipfsImageHash), ScriptTransfer(recipient, 2, assetId)] |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
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 mintNft (ipfsImageHash) = { |
---|
8 | 8 | | let recipient = i.caller |
---|
9 | 9 | | let asset = Issue("donkey-", "first Nft", 2, 0, false) |
---|
10 | | - | let assetId = toBase58String(calculateAssetId(asset)) |
---|
11 | | - | [asset, StringEntry((assetId + "_ipfs"), ipfsImageHash)] |
---|
| 10 | + | let assetId = calculateAssetId(asset) |
---|
| 11 | + | [asset, StringEntry((toBase58String(assetId) + "_ipfs"), ipfsImageHash), ScriptTransfer(recipient, 2, assetId)] |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|