tx · BN4ny3TF9tpc6YRAu9qGXvf9fZmRQeBS9iV1GLdvQ8oJ
3MvLoXwBdKy82DvUc18Bhtv4tcGhvNbJRte: -0.00100000 Waves
2022.09.17 12:34 [2232933] smart account 3MvLoXwBdKy82DvUc18Bhtv4tcGhvNbJRte > SELF 0.00000000 Waves
{
"type": 13,
"id": "BN4ny3TF9tpc6YRAu9qGXvf9fZmRQeBS9iV1GLdvQ8oJ",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1663407335990,
"version": 2,
"chainId": 84,
"sender": "3MvLoXwBdKy82DvUc18Bhtv4tcGhvNbJRte",
"senderPublicKey": "8kniNnhqS4yFAgjyL5p26FADdec1VLXx7SRcE3MHe5Km",
"proofs": [
"5kLrjaEKYyib41t3T3Kk9tpWf5zZVbr9eYw59fw2xrxovDJUKwcsdYHpSq1sYatgnHtmTubnxyRPbT4y65B4YVnS"
],
"script": "base64:BgIKCAISBgoECAgBAQEBCW9wQWxsb3dlZAEGYW1vdW50BAckbWF0Y2gwCQD8BwQJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNNckd3WVVUOVZZQWh6eFNYVFdKTjlnYUM5NVd2SldNNXpHAgR0ZXN0CQDMCAIFBmFtb3VudAUDbmlsBQNuaWwDCQABAgUHJG1hdGNoMAIHQm9vbGVhbgQBYgUHJG1hdGNoMAMFAWIGCQACAQILbm90IGFsbG93ZWQJAAIBAiFvcEFsbG93ZWQ6IHVuZXhwZWN0ZWQgcmVzdWx0IHR5cGUBAWkBBnRlbGxtZQQEYWRkMQRhZGQyCmFkZDFBbW91bnQKYWRkMkFtb3VudAQFdGVzdEEJAQlvcEFsbG93ZWQBBQphZGQxQW1vdW50AwkAAAIFBXRlc3RBBQV0ZXN0QQQDcnQxCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJARFAZXh0ck5hdGl2ZSgxMDYyKQEFBGFkZDEFCmFkZDFBbW91bnQFBHVuaXQFA25pbAQFdGVzdEIJAQlvcEFsbG93ZWQBBQphZGQyQW1vdW50AwkAAAIFBXRlc3RCBQV0ZXN0QgkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQERQGV4dHJOYXRpdmUoMTA2MikBBQRhZGQyBQphZGQyQW1vdW50BQR1bml0BQNuaWwJAAIBAg1ub3QgYWxsb3dlZF8yCQACAQINbm90IGFsbG93ZWRfMQCI/4N5",
"height": 2232933,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6FvHTa1pryweZ6XtZSqbAvBRcQho7cNsZeTYzSDXJhWW
Next: 7J4LpHR23HrzjhUDC7Ai4aCYvRNgx7y3AxtExdZPHdZ5
Diff:
Old | New | | Differences |
---|
16 | 16 | | let testA = opAllowed(add1Amount) |
---|
17 | 17 | | if ((testA == testA)) |
---|
18 | 18 | | then { |
---|
19 | | - | let rt1 = [ScriptTransfer(addressFromStringValue(add2), add2Amount, unit)] |
---|
| 19 | + | let rt1 = [ScriptTransfer(addressFromStringValue(add1), add1Amount, unit)] |
---|
20 | 20 | | let testB = opAllowed(add2Amount) |
---|
21 | 21 | | if ((testB == testB)) |
---|
22 | | - | then [ScriptTransfer(addressFromStringValue(add1), add1Amount, unit)] |
---|
| 22 | + | then [ScriptTransfer(addressFromStringValue(add2), add2Amount, unit)] |
---|
23 | 23 | | else throw("not allowed_2") |
---|
24 | 24 | | } |
---|
25 | 25 | | else throw("not allowed_1") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func opAllowed (amount) = match invoke(addressFromStringValue("3MrGwYUT9VYAhzxSXTWJN9gaC95WvJWM5zG"), "test", [amount], nil) { |
---|
5 | 5 | | case b: Boolean => |
---|
6 | 6 | | if (b) |
---|
7 | 7 | | then true |
---|
8 | 8 | | else throw("not allowed") |
---|
9 | 9 | | case _ => |
---|
10 | 10 | | throw("opAllowed: unexpected result type") |
---|
11 | 11 | | } |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | @Callable(i) |
---|
15 | 15 | | func tellme (add1,add2,add1Amount,add2Amount) = { |
---|
16 | 16 | | let testA = opAllowed(add1Amount) |
---|
17 | 17 | | if ((testA == testA)) |
---|
18 | 18 | | then { |
---|
19 | | - | let rt1 = [ScriptTransfer(addressFromStringValue(add2), add2Amount, unit)] |
---|
| 19 | + | let rt1 = [ScriptTransfer(addressFromStringValue(add1), add1Amount, unit)] |
---|
20 | 20 | | let testB = opAllowed(add2Amount) |
---|
21 | 21 | | if ((testB == testB)) |
---|
22 | | - | then [ScriptTransfer(addressFromStringValue(add1), add1Amount, unit)] |
---|
| 22 | + | then [ScriptTransfer(addressFromStringValue(add2), add2Amount, unit)] |
---|
23 | 23 | | else throw("not allowed_2") |
---|
24 | 24 | | } |
---|
25 | 25 | | else throw("not allowed_1") |
---|
26 | 26 | | } |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|