tx · HzVTt6qgz9Cyihajy7ydyfTgphvHMBzkjDXgRbz12VXa
3NCQXvfTSc9mJSsbSCRRspb1RNcTEsoRmq3: -0.01800000 Waves
2022.02.25 12:49 [1939001] smart account 3NCQXvfTSc9mJSsbSCRRspb1RNcTEsoRmq3 > SELF 0.00000000 Waves
{
"type": 13,
"id": "HzVTt6qgz9Cyihajy7ydyfTgphvHMBzkjDXgRbz12VXa",
"fee": 1800000,
"feeAssetId": null,
"timestamp": 1645782662572,
"version": 2,
"chainId": 84,
"sender": "3NCQXvfTSc9mJSsbSCRRspb1RNcTEsoRmq3",
"senderPublicKey": "5mSVMbdbPqdvwHabMCMzutL8BWG5aJLM8ijqhupmAxC",
"proofs": [
"554xX47tg4zi13f8PixDjgYxK1pFSvWHhEn4teFCcgrUPWWrtSmY5tauCydMRH9amUnTaJ8Ey5j6f6trYxt2ceUK"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAQAAAAAMYWRtaW5QdWJLZXkxAQAAACBE6rjAjUL4RUtuhT4vuFsEGO7C8vdZ3HKiPF/OD9JKQgAAAAEAAAABaQEAAAAEY2FsbAAAAAAJAARMAAAAAgkBAAAAC0JpbmFyeUVudHJ5AAAAAgIAAAADYmluAQAAAAAJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAICAAAABGJvb2wGCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAANpbnQAAAAAAAAAAAEJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAADc3RyAgAAAAAJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQIAAAADc3RyBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAABJhZG1pblB1YktleTFTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkxAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIFAAAAEmFkbWluUHViS2V5MVNpZ25lZAAAAAAAAAAAAQKPUjI=",
"height": 1939001,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2gBJHXeCt6kjZezyma7uVdejXbGkzX1eaDQy9o5oC8mG
Next: none
Diff:
Old | New | | Differences |
---|
8 | 8 | | |
---|
9 | 9 | | |
---|
10 | 10 | | @Verifier(tx) |
---|
11 | | - | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 11 | + | func verify () = { |
---|
| 12 | + | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) |
---|
| 13 | + | then 1 |
---|
| 14 | + | else 0 |
---|
| 15 | + | (adminPubKey1Signed >= 1) |
---|
| 16 | + | } |
---|
12 | 17 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let adminPubKey1 = base58'5e2K8FEPWCbLCKbpRy2JPMfLmsHJziBrLXzVHPhSiL5w' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func call () = [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str")] |
---|
8 | 8 | | |
---|
9 | 9 | | |
---|
10 | 10 | | @Verifier(tx) |
---|
11 | | - | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 11 | + | func verify () = { |
---|
| 12 | + | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) |
---|
| 13 | + | then 1 |
---|
| 14 | + | else 0 |
---|
| 15 | + | (adminPubKey1Signed >= 1) |
---|
| 16 | + | } |
---|
12 | 17 | | |
---|