tx · fLzcmaGvuKSv9R7EgEVAcQCnUSS5gZVdV2z6StWiX2Q
3MuMiS4jTTcuf13zMuonyb8JBE1jJkQ5JNe: -0.01400000 Waves
2021.02.19 01:59 [1404207] smart account 3MuMiS4jTTcuf13zMuonyb8JBE1jJkQ5JNe > SELF 0.00000000 Waves
{
"type": 13,
"id": "fLzcmaGvuKSv9R7EgEVAcQCnUSS5gZVdV2z6StWiX2Q",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1613689185576,
"version": 2,
"chainId": 84,
"sender": "3MuMiS4jTTcuf13zMuonyb8JBE1jJkQ5JNe",
"senderPublicKey": "8QFH4kvTaVWhAPErMqKKRzRhYtv7egJFn1UpMdj8pMf3",
"proofs": [
"42iq8aHJNh9J523HWcCMXS7YTvDEin5BEhnDvnLExqCcq43bzkNCAtjohB2rvES3BuMfH14PAddTHwsvCekMzQ5W"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAAAAAAAAEAAAABaQEAAAANUmVnaXN0ZXJFbWFpbAAAAAEAAAAJWW91ckVtYWlsBAAAAAdhc3NldGlkAQAAACC6vVI7UxTCnVRWGLR3ztyYkk4CUUFVVlvuen2G1r3cOwQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAANwbXQDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAcQXR0YWNoZWQgcGF5bWVudCBpcyByZXF1aXJlZAMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAHYXNzZXRJZAUAAAAHYXNzZXRpZAkAAAIAAAABAgAAAD9Zb3UgbmVlZCB0byBjaG9vc2UgZXhhY3QgMC41IFVTRFQgdG8gU2lnbiBUeG4gbm90IG90aGVyIGFzc2V0cy4EAAAACGZpbmR1c2VyCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAICAAAAC0Vycm9yIE9yZGVyCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzBQAAAApjdXJyZW50S2V5AwkAAAAAAAACBQAAAAhmaW5kdXNlcgUAAAAJWW91ckVtYWlsCQAAAgAAAAECAAAAGVVzZXIgQWxyZWFkeSBSZWdpc3RlcnRlZC4JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAAKY3VycmVudEtleQUAAAAJWW91ckVtYWlsCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAAKU3RhdHVzX09mXwUAAAAJWW91ckVtYWlsAgAAAApVbnZlcmlmaWVkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXk71bK0",
"height": 1404207,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 7aXjZDX5aq76VQUNEE5HhnMv33dj2DEMjw5xs8nNoVZe
Next: BmgZXYK1BSEmyubpSzjB4Ly3JaAgP7nc139QWK9GKpF3
Diff:
Old | New | | Differences |
---|
13 | 13 | | if ((e.assetId != c)) |
---|
14 | 14 | | then throw("You need to choose exact 0.5 USDT to Sign Txn not other assets.") |
---|
15 | 15 | | else { |
---|
16 | | - | let f = getStringValue(this, d) |
---|
17 | | - | if (if ((f == b)) |
---|
18 | | - | then true |
---|
19 | | - | else (f == "")) |
---|
| 16 | + | let f = valueOrErrorMessage("Error Order", getStringValue(this, d)) |
---|
| 17 | + | if ((f == b)) |
---|
20 | 18 | | then throw("User Already Registerted.") |
---|
21 | 19 | | else [StringEntry(d, b), StringEntry(("Status_Of_" + b), "Unverified")] |
---|
22 | 20 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func RegisterEmail (b) = { |
---|
8 | 8 | | let c = base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL' |
---|
9 | 9 | | let d = toBase58String(a.caller.bytes) |
---|
10 | 10 | | let e = if ((size(a.payments) == 1)) |
---|
11 | 11 | | then a.payments[0] |
---|
12 | 12 | | else throw("Attached payment is required") |
---|
13 | 13 | | if ((e.assetId != c)) |
---|
14 | 14 | | then throw("You need to choose exact 0.5 USDT to Sign Txn not other assets.") |
---|
15 | 15 | | else { |
---|
16 | | - | let f = getStringValue(this, d) |
---|
17 | | - | if (if ((f == b)) |
---|
18 | | - | then true |
---|
19 | | - | else (f == "")) |
---|
| 16 | + | let f = valueOrErrorMessage("Error Order", getStringValue(this, d)) |
---|
| 17 | + | if ((f == b)) |
---|
20 | 18 | | then throw("User Already Registerted.") |
---|
21 | 19 | | else [StringEntry(d, b), StringEntry(("Status_Of_" + b), "Unverified")] |
---|
22 | 20 | | } |
---|
23 | 21 | | } |
---|
24 | 22 | | |
---|
25 | 23 | | |
---|
26 | 24 | | @Verifier(g) |
---|
27 | 25 | | func h () = { |
---|
28 | 26 | | let i = g |
---|
29 | 27 | | sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey) |
---|
30 | 28 | | } |
---|
31 | 29 | | |
---|