tx · FdR2JgbvsnXkJQvnKGbss8HdxsttUtgnqM6DqnEwvk5o

3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx:  -0.01000000 Waves

2023.03.22 12:07 [2501028] smart account 3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx > SELF 0.00000000 Waves

{ "type": 13, "id": "FdR2JgbvsnXkJQvnKGbss8HdxsttUtgnqM6DqnEwvk5o", "fee": 1000000, "feeAssetId": null, "timestamp": 1679476224848, "version": 2, "chainId": 84, "sender": "3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx", "senderPublicKey": "DyeDJ3fgwVVux2WRkxpLU9BbVjTM96AyV58b7bRFzCBx", "proofs": [ "2qdbyzRqLvBZadLAL3WxqrXpV2Yzh2HBWXdfWJVrb5P234cLDSvhx26o6yhRmy4Bsk5YDEKVfos82Fc14bZWiFbX" ], "script": "base64:BgIHCAISAwoBCAABAWkBB21pbnROZnQBDWlwZnNJbWFnZUhhc2gECXJlY2lwaWVudAgFAWkGY2FsbGVyBAZhc3NldDEJAMIIBQIHc2h1YmhhbQIMc2RzbmRzc25kc2RkAAEAAAcECGFzc2V0SWQxCQC4CAEFBmFzc2V0MQQGYXNzZXQyCQDCCAUCBnNodWJoaQIHZGV3ZGRqZAABAAAHBAhhc3NldElkMgkAuAgBBQZhc3NldDIJAMwIAgUGYXNzZXQxCQDMCAIFBmFzc2V0MgkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJANgEAQUIYXNzZXRJZDECBV9pcGZzBQ1pcGZzSW1hZ2VIYXNoCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkA2AQBBQhhc3NldElkMgIFX2lwZnMFDWlwZnNJbWFnZUhhc2gJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUJcmVjaXBpZW50AAEFCGFzc2V0SWQxCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFCXJlY2lwaWVudAABBQhhc3NldElkMgUDbmlsAFwJCx8=", "height": 2501028, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8a2vaBhjm7tX7HXcNpMSHSr96c24XGhG6nqDWdvPXkdr Next: 6zpnghesTggdhhPDa3hnj5TEQsk5NfVd8Bo8apXBme3Z Diff:
OldNewDifferences
44
55
66 @Callable(i)
7-func mintNft (ipfs_id,nft_name,nft_description) = {
7+func mintNft (ipfsImageHash) = {
88 let recipient = i.caller
9- let asset1 = Issue(nft_name, nft_description, 1, 0, false)
9+ let asset1 = Issue("shubham", "sdsndssndsdd", 1, 0, false)
1010 let assetId1 = calculateAssetId(asset1)
11- let asset2 = Issue(nft_name, nft_description, 1, 0, false)
11+ let asset2 = Issue("shubhi", "dewddjd", 1, 0, false)
1212 let assetId2 = calculateAssetId(asset2)
13-[asset1, asset2, ScriptTransfer(recipient, 1, assetId1), ScriptTransfer(recipient, 1, assetId2)]
13+[asset1, asset2, StringEntry((toBase58String(assetId1) + "_ipfs"), ipfsImageHash), StringEntry((toBase58String(assetId2) + "_ipfs"), ipfsImageHash), ScriptTransfer(recipient, 1, assetId1), ScriptTransfer(recipient, 1, assetId2)]
1414 }
1515
1616
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
7-func mintNft (ipfs_id,nft_name,nft_description) = {
7+func mintNft (ipfsImageHash) = {
88 let recipient = i.caller
9- let asset1 = Issue(nft_name, nft_description, 1, 0, false)
9+ let asset1 = Issue("shubham", "sdsndssndsdd", 1, 0, false)
1010 let assetId1 = calculateAssetId(asset1)
11- let asset2 = Issue(nft_name, nft_description, 1, 0, false)
11+ let asset2 = Issue("shubhi", "dewddjd", 1, 0, false)
1212 let assetId2 = calculateAssetId(asset2)
13-[asset1, asset2, ScriptTransfer(recipient, 1, assetId1), ScriptTransfer(recipient, 1, assetId2)]
13+[asset1, asset2, StringEntry((toBase58String(assetId1) + "_ipfs"), ipfsImageHash), StringEntry((toBase58String(assetId2) + "_ipfs"), ipfsImageHash), ScriptTransfer(recipient, 1, assetId1), ScriptTransfer(recipient, 1, assetId2)]
1414 }
1515
1616

github/deemru/w8io/026f985 
39.63 ms