tx · Fnzs9WCXL7dNjyL4jSMkinsjV8Hq3L7SncYdbwfG5sox

3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw:  -0.01000000 Waves

2023.02.03 16:00 [2433467] smart account 3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw > SELF 0.00000000 Waves

{ "type": 13, "id": "Fnzs9WCXL7dNjyL4jSMkinsjV8Hq3L7SncYdbwfG5sox", "fee": 1000000, "feeAssetId": null, "timestamp": 1675429321774, "version": 2, "chainId": 84, "sender": "3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw", "senderPublicKey": "4NDsd3dGKXuKLCoSbYvcWCX276K9ShP75cs9HTBMLJEN", "proofs": [ "7BepzEVpT4eU16bkkSfE9TeMX8D17PmRE1cFptwnQKFAX2bqHLJHhWpScZfDLqnZVYscWVB2x8Um2Wm383ebAWJ" ], "script": "base64:BgIKCAISBgoECAgIAQABAWkBB21pbnROZnQEDWlwZnNJbWFnZUhhc2gFX25hbWUMX2Rlc2NyaXB0aW9uCHF1YW50aXR5BAlyZWNpcGllbnQIBQFpBmNhbGxlcgQFYXNzZXQJAMIIBQUFX25hbWUFDF9kZXNjcmlwdGlvbgUIcXVhbnRpdHkAAAcEB2Fzc2V0SWQJALgIAQUFYXNzZXQJAMwIAgUFYXNzZXQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUJcmVjaXBpZW50BQhxdWFudGl0eQUHYXNzZXRJZAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJANgEAQUHYXNzZXRJZAIFX2lwZnMFDWlwZnNJbWFnZUhhc2gJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQDYBAEFB2Fzc2V0SWQCBV9uYW1lBQVfbmFtZQkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJANgEAQUHYXNzZXRJZAIMX2Rlc2NyaXB0aW9uBQxfZGVzY3JpcHRpb24JAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkA2AQBBQdhc3NldElkAghxdWFudGl0eQUIcXVhbnRpdHkFA25pbACLqHeb", "height": 2433467, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6rejNUYSnZJsP1H92t7qAQbHcGBBfrfTGhQzvco2CggU Next: 6icbE26qEKyLWgiT71GpYe7fDUcg7MMZpWTu615wa2W5 Diff:
OldNewDifferences
44
55
66 @Callable(i)
7-func mintNft (ipfsImageHash) = {
7+func mintNft (ipfsImageHash,_name,_description,quantity) = {
88 let recipient = i.caller
9- let asset = Issue("donkey-", "first Nft", 1, 0, false)
9+ let asset = Issue(_name, _description, quantity, 0, false)
1010 let assetId = calculateAssetId(asset)
11-[asset, StringEntry((toBase58String(assetId) + "_ipfs"), ipfsImageHash), ScriptTransfer(recipient, 1, assetId)]
11+[asset, ScriptTransfer(recipient, quantity, assetId), StringEntry((toBase58String(assetId) + "_ipfs"), ipfsImageHash), StringEntry((toBase58String(assetId) + "_name"), _name), StringEntry((toBase58String(assetId) + "_description"), _description), IntegerEntry((toBase58String(assetId) + "quantity"), quantity)]
1212 }
1313
1414
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
7-func mintNft (ipfsImageHash) = {
7+func mintNft (ipfsImageHash,_name,_description,quantity) = {
88 let recipient = i.caller
9- let asset = Issue("donkey-", "first Nft", 1, 0, false)
9+ let asset = Issue(_name, _description, quantity, 0, false)
1010 let assetId = calculateAssetId(asset)
11-[asset, StringEntry((toBase58String(assetId) + "_ipfs"), ipfsImageHash), ScriptTransfer(recipient, 1, assetId)]
11+[asset, ScriptTransfer(recipient, quantity, assetId), StringEntry((toBase58String(assetId) + "_ipfs"), ipfsImageHash), StringEntry((toBase58String(assetId) + "_name"), _name), StringEntry((toBase58String(assetId) + "_description"), _description), IntegerEntry((toBase58String(assetId) + "quantity"), quantity)]
1212 }
1313
1414

github/deemru/w8io/026f985 
19.81 ms