tx · 24ZXGzyRpSjbxEaGAJawByLZqcATcbipoYVKPQ9VHCFd

3N8mE3Vv1LpKFDxNRtdzBzmMKbwtycbB2KZ:  -0.01000000 Waves

2022.02.23 08:58 [1935927] smart account 3N8mE3Vv1LpKFDxNRtdzBzmMKbwtycbB2KZ > SELF 0.00000000 Waves

{ "type": 13, "id": "24ZXGzyRpSjbxEaGAJawByLZqcATcbipoYVKPQ9VHCFd", "fee": 1000000, "feeAssetId": null, "timestamp": 1645595874456, "version": 2, "chainId": 84, "sender": "3N8mE3Vv1LpKFDxNRtdzBzmMKbwtycbB2KZ", "senderPublicKey": "9q7vTvr7sh15ChGajicBoCF1zuKAofLQPeBWFNdNsuA9", "proofs": [ "4yvVMs19oWBcCMro24uBAzHBo6iP1RFSCTKMnNjoTn8BZkUTeG4MAwig2zY6Y3NZ3H9PREHKAT5raQTsEDfBbJuf" ], "script": "base64:AAIFAAAAAAAAAA4IAhIFCgMICAgSAwoBCAAAAAEBAAAAEWlzVmFsaWRDb2xsZWN0aW9uAAAAAQAAAAxjb2xsZWN0aW9uSWQEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAMY29sbGVjdGlvbklkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWIFAAAAByRtYXRjaDAGBwAAAAIAAAABaQEAAAALaXNzdWVOZXdOZnQAAAADAAAABG5hbWUAAAAMY29sbGVjdGlvbklkAAAACG1ldGFkYXRhAwkAAAAAAAACCQEAAAARaXNWYWxpZENvbGxlY3Rpb24AAAABBQAAAAxjb2xsZWN0aW9uSWQHCQAAAgAAAAECAAAAIVRhcmdldCBjb2xsZWN0aW9uIGRvZXMgbm90IGV4aXN0IQQAAAANY2FsbGVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVhc3NldAkABEIAAAAFBQAAAARuYW1lBQAAAAhtZXRhZGF0YQAAAAAAAAAAAQAAAAAAAAAAAAcEAAAAB2Fzc2V0SWQJAAQ4AAAAAQUAAAAFYXNzZXQEAAAACmFzc2V0SWRTdHIJAAJYAAAAAQUAAAAHYXNzZXRJZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIFAAAACmFzc2V0SWRTdHICAAAACF9hc3NldElkBQAAAAphc3NldElkU3RyCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAAKYXNzZXRJZFN0cgIAAAANX2NvbGxlY3Rpb25JZAUAAAAMY29sbGVjdGlvbklkCQAETAAAAAIFAAAABWFzc2V0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQUAAAANY2FsbGVyQWRkcmVzcwAAAAAAAAAAAQUAAAAHYXNzZXRJZAUAAAADbmlsAAAAAWkBAAAAEGNyZWF0ZUNvbGxlY3Rpb24AAAABAAAACG1ldGFkYXRhBAAAAAxjb2xsZWN0aW9uSWQJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIFAAAADGNvbGxlY3Rpb25JZAIAAAALX2NvbGxlY3Rpb24FAAAACG1ldGFkYXRhBQAAAANuaWwAAAAATejYQQ==", "height": 1935927, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J3DDTYATXwajRGiZ44Zs1DRJEcau2PiYZjGXRZovYc4N Next: CJ1f7DrFShqheKY5jMKwBDU5JDmv37tcQmjSyBzkdDxF Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+func a (b) = {
5+ let c = getString(this, b)
6+ if ($isInstanceOf(c, "String"))
7+ then {
8+ let d = c
9+ true
10+ }
11+ else false
12+ }
413
514
6-@Callable(a)
7-func issueNewNft (b,c) = {
8- let d = toBase58String(a.caller.bytes)
9- let e = Issue(b, c, 1, 0, false)
10- let f = calculateAssetId(e)
11- let g = toBase58String(f)
12-[StringEntry((g + "_assetId"), g), e, ScriptTransfer(value(addressFromString(d)), 1, f)]
15+@Callable(e)
16+func issueNewNft (f,b,g) = if ((a(b) == false))
17+ then throw("Target collection does not exist!")
18+ else {
19+ let h = toBase58String(e.caller.bytes)
20+ let i = Issue(f, g, 1, 0, false)
21+ let j = calculateAssetId(i)
22+ let k = toBase58String(j)
23+[StringEntry((k + "_assetId"), k), StringEntry((k + "_collectionId"), b), i, ScriptTransfer(value(addressFromString(h)), 1, j)]
24+ }
25+
26+
27+
28+@Callable(e)
29+func createCollection (g) = {
30+ let b = toBase58String(e.transactionId)
31+[StringEntry((b + "_collection"), g)]
1332 }
1433
1534

github/deemru/w8io/169f3d6 
29.79 ms