tx · H6oRCa1f4g9FNwMekmVMi7GwJJKWu9keasgyhNTwybRL

3MwPF8FWd4fYohy6CXXB6wtjbRRvqFpxmdD:  -0.01000000 Waves

2023.07.30 14:46 [2688558] smart account 3MwPF8FWd4fYohy6CXXB6wtjbRRvqFpxmdD > SELF 0.00000000 Waves

{ "type": 13, "id": "H6oRCa1f4g9FNwMekmVMi7GwJJKWu9keasgyhNTwybRL", "fee": 1000000, "feeAssetId": null, "timestamp": 1690717644324, "version": 2, "chainId": 84, "sender": "3MwPF8FWd4fYohy6CXXB6wtjbRRvqFpxmdD", "senderPublicKey": "G6PnkMn8MpXBkNwsQKMn1o1V7EKMgZyHCJRdFMQuouBC", "proofs": [ "5WXntXze5LTNeSWBnQav5pMyQDvf65dWz6k3o182WWQ76mCGS9BfagVfHDsan8ts6zomyp2FesjTse49pxESHaJY" ], "script": "base64:BgIHCAISAwoBCAgAEGNvbnRyYWN0RmlsZU5hbWUCAnAxAA10b2tlbl9hZGRyZXNzCQEHQWRkcmVzcwEBGgFUUevquKc82yLj6POP0d8MGx4c9yM7LkYsAANTRVACASAACGthc3NldElkAgdBc3NldElEAQZrZXlNc2cACQC5CQIJAMwIAgICJXMJAMwIAgIp0J/QtdGA0LXQtNCw0L3QvdC+0LUg0YHQvtC+0LHRidC10L3QuNC1OiAFA25pbAUDU0VQAQprZXlBc3NldElEAAkAuQkCCQDMCAICAiVzCQDMCAICB2Fzc2V0SUQFA25pbAUDU0VQAQd3cmFwRXJyAQNtc2cJALkJAgkAzAgCBRBjb250cmFjdEZpbGVOYW1lCQDMCAICAToJAMwIAgUDbXNnBQNuaWwCAAEIdGhyb3dFcnIBA21zZwkAAgEJAQd3cmFwRXJyAQUDbXNnAQFpAQdtZXNzYWdlAQNtc2cEBXdvcmRzCQC1CQIFA21zZwUDU0VQBAl3b3JkQ291bnQJAJADAQUFd29yZHMEB3BheW1lbnQJAJEDAggFAWkIcGF5bWVudHMAAAQOcGF5bWVudF9hbW91bnQICQCRAwIIBQFpCHBheW1lbnRzAAAGYW1vdW50AwkBAiE9AgUOcGF5bWVudF9hbW91bnQFCXdvcmRDb3VudAkBCHRocm93RXJyAQIy0JrQvtC7LdCy0L4g0YHQu9C+0LIgIT0g0LrQvtC7LdCy0YMg0YLQvtC60LXQvdC+0LIDCQAAAgEhETjui5BwgM7t2anpXm9A2pY3WzHpaxK8FWRPhw4Bo1GXCAkAkQMCCAUBaQhwYXltZW50cwAAB2Fzc2V0SWQJAQh0aHJvd0VycgECLtCf0LvQsNGC0LXQtiDQtNC+0LvQttC10L0g0LHRi9GC0Ywg0LIgUFJBQ1RJQ0UJAMwIAgkBC1N0cmluZ0VudHJ5AgkBBmtleU1zZwAFA21zZwUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleRwFSWg=", "height": 2688558, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DZvUv44d7MepV29V7XMH89rPWn4vCDLiR8axb57WeUXj Next: 9NpQXs6VfKqupPzdF43QYExgBqCdnFMLkmbqNd5s1okb Diff:
OldNewDifferences
3131 then throwErr("Кол-во слов != кол-ву токенов")
3232 else if ((base58'67jd6w7KdYT8s2sPCfkP7B3jMoXXeSnM9UjwtvBPp19yQ' == i.payments[0].assetId))
3333 then throwErr("Платеж должен быть в PRACTICE")
34- else [StringEntry(kassetId, contractFileName), StringEntry(keyMsg(), msg)]
34+ else [StringEntry(keyMsg(), msg)]
3535 }
3636
3737
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let contractFileName = "p1"
55
66 let token_address = Address(base58'3MwPF8FWd4fYohy6CXXB6wtjbRRvqFpxmdD')
77
88 let SEP = " "
99
1010 let kassetId = "AssetID"
1111
1212 func keyMsg () = makeString(["%s", "Переданное сообщение: "], SEP)
1313
1414
1515 func keyAssetID () = makeString(["%s", "assetID"], SEP)
1616
1717
1818 func wrapErr (msg) = makeString([contractFileName, ":", msg], "")
1919
2020
2121 func throwErr (msg) = throw(wrapErr(msg))
2222
2323
2424 @Callable(i)
2525 func message (msg) = {
2626 let words = split(msg, SEP)
2727 let wordCount = size(words)
2828 let payment = i.payments[0]
2929 let payment_amount = i.payments[0].amount
3030 if ((payment_amount != wordCount))
3131 then throwErr("Кол-во слов != кол-ву токенов")
3232 else if ((base58'67jd6w7KdYT8s2sPCfkP7B3jMoXXeSnM9UjwtvBPp19yQ' == i.payments[0].assetId))
3333 then throwErr("Платеж должен быть в PRACTICE")
34- else [StringEntry(kassetId, contractFileName), StringEntry(keyMsg(), msg)]
34+ else [StringEntry(keyMsg(), msg)]
3535 }
3636
3737
3838 @Verifier(tx)
3939 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4040

github/deemru/w8io/026f985 
38.40 ms