tx · AKbfDgGo4yC2Wi4D1b3w14ig8fHHyApWqQjPQwfKvSkT

3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua:  -0.01400000 Waves

2021.03.17 13:28 [1441603] smart account 3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua > SELF 0.00000000 Waves

{ "type": 13, "id": "AKbfDgGo4yC2Wi4D1b3w14ig8fHHyApWqQjPQwfKvSkT", "fee": 1400000, "feeAssetId": null, "timestamp": 1615976935014, "version": 2, "chainId": 84, "sender": "3Mz29fiz3zgY9JDbiHKANvHsFgQutdfu4Ua", "senderPublicKey": "CTyHhnVTxf16Z4CmGGneAK8WB5g2QyT4MB8kUn8vPPcu", "proofs": [ "2HtrrapU1S9KhicNCLcypUW6YG5Sef2oq3U9JUAZZpLn65KfTcLWtKJHTLj86oFy3sngyKQN9vTL4yuhvQ2mAAFG" ], "script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQgAAAAEAAAAAAlzZXBhcmF0b3ICAAAAA19fXwAAAAARa2V5TG9ja2FibGVBc3NldHMCAAAAE2RBcHBfTG9ja2FibGVBc3NldHMBAAAACmNoZWNrQXNzZXQAAAABAAAAB2Fzc2V0SWQEAAAAByRtYXRjaDAJAAPsAAAAAQUAAAAHYXNzZXRJZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFQXNzZXQEAAAAB2lzQXNzZXQFAAAAByRtYXRjaDAGBwEAAAARZ2V0TG9ja2FibGVBc3NldHMAAAAABAAAAAdzdHJMaXN0CQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzBQAAABFrZXlMb2NrYWJsZUFzc2V0cwQAAAAHc3BsaXRlZAkABLUAAAACBQAAAAdzdHJMaXN0BQAAAAlzZXBhcmF0b3IDCQAAZgAAAAIAAAAAAAAAAGQJAAGQAAAAAQUAAAAHc3BsaXRlZAkAAAIAAAABCQABkQAAAAIFAAAAB3NwbGl0ZWQAAAAAAAAAAAAFAAAAB3NwbGl0ZWQAAAACAAAAAWkBAAAABGluaXQAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAEWtleUxvY2thYmxlQXNzZXRzAgAAAAAFAAAAA25pbAAAAAFpAQAAABJvcEFkZExvY2thYmxlQXNzZXQAAAABAAAACmFzc2V0SWRTdHIEAAAAB2Fzc2V0SWQJAAJZAAAAAQUAAAAKYXNzZXRJZFN0cgMJAQAAAAIhPQAAAAIFAAAABHRoaXMIBQAAAAFpAAAABmNhbGxlcgkAAAIAAAABAgAAAA1BY2Nlc3MgZGVuaWVkAwkAAAAAAAACCQEAAAAKY2hlY2tBc3NldAAAAAEFAAAAB2Fzc2V0SWQHCQAAAgAAAAECAAAAFU5vdCBhbiBleGlzdGluZyBhc3NldAQAAAAObG9ja2FibGVBc3NldHMJAQAAABFnZXRMb2NrYWJsZUFzc2V0cwAAAAADCQAAAAAAAAIJAQAAAA9jb250YWluc0VsZW1lbnQAAAACBQAAAA5sb2NrYWJsZUFzc2V0cwUAAAAKYXNzZXRJZFN0cgYJAAACAAAAAQIAAAAWQXNzZXQgYWxyZWFkeSBsb2NrYWJsZQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAABFrZXlMb2NrYWJsZUFzc2V0cwkABLkAAAACCQAETAAAAAIFAAAACmFzc2V0SWRTdHIFAAAADmxvY2thYmxlQXNzZXRzBQAAAAlzZXBhcmF0b3IFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5FPDWDg==", "height": 1441603, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Bd55XmExNtfgy4yuRLkCxmayqy42evz4cPjPwo8hPyAK Next: 4MegBEKkGfbwwaAjGTsMe8Wwcb2m33xtbU9WTt9BbkhH Diff:
OldNewDifferences
1717 let strList = getStringValue(this, keyLockableAssets)
1818 let splited = split(strList, separator)
1919 if ((100 > size(splited)))
20- then throw(toString(size(splited)))
20+ then throw(splited[0])
2121 else splited
2222 }
2323
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "___"
55
66 let keyLockableAssets = "dApp_LockableAssets"
77
88 func checkAsset (assetId) = match assetInfo(assetId) {
99 case isAsset: Asset =>
1010 true
1111 case _ =>
1212 false
1313 }
1414
1515
1616 func getLockableAssets () = {
1717 let strList = getStringValue(this, keyLockableAssets)
1818 let splited = split(strList, separator)
1919 if ((100 > size(splited)))
20- then throw(toString(size(splited)))
20+ then throw(splited[0])
2121 else splited
2222 }
2323
2424
2525 @Callable(i)
2626 func init () = [StringEntry(keyLockableAssets, "")]
2727
2828
2929
3030 @Callable(i)
3131 func opAddLockableAsset (assetIdStr) = {
3232 let assetId = fromBase58String(assetIdStr)
3333 if ((this != i.caller))
3434 then throw("Access denied")
3535 else if ((checkAsset(assetId) == false))
3636 then throw("Not an existing asset")
3737 else {
3838 let lockableAssets = getLockableAssets()
3939 if ((containsElement(lockableAssets, assetIdStr) == true))
4040 then throw("Asset already lockable")
4141 else [StringEntry(keyLockableAssets, makeString(assetIdStr :: lockableAssets, separator))]
4242 }
4343 }
4444
4545
4646 @Verifier(tx)
4747 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4848

github/deemru/w8io/169f3d6 
36.97 ms