tx · 7J4LpHR23HrzjhUDC7Ai4aCYvRNgx7y3AxtExdZPHdZ5

3MvLoXwBdKy82DvUc18Bhtv4tcGhvNbJRte:  -0.00100000 Waves

2022.09.17 12:43 [2232940] smart account 3MvLoXwBdKy82DvUc18Bhtv4tcGhvNbJRte > SELF 0.00000000 Waves

{ "type": 13, "id": "7J4LpHR23HrzjhUDC7Ai4aCYvRNgx7y3AxtExdZPHdZ5", "fee": 100000, "feeAssetId": null, "timestamp": 1663407910591, "version": 2, "chainId": 84, "sender": "3MvLoXwBdKy82DvUc18Bhtv4tcGhvNbJRte", "senderPublicKey": "8kniNnhqS4yFAgjyL5p26FADdec1VLXx7SRcE3MHe5Km", "proofs": [ "4PRNB18Wv2UNTg8tfmH7kgfgN5HpyLwZoQ87HUW7S6KvtugbA1Xo21Pw8ocYfuoW8v4mYtGoRjc9GnkPMpRdhrNT" ], "script": "base64:BgIKCAISBgoECAgBAQEBCW9wQWxsb3dlZAEGYW1vdW50BAckbWF0Y2gwCQD8BwQJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNNckd3WVVUOVZZQWh6eFNYVFdKTjlnYUM5NVd2SldNNXpHAgR0ZXN0CQDMCAIFBmFtb3VudAUDbmlsBQNuaWwDCQABAgUHJG1hdGNoMAIHQm9vbGVhbgQBYgUHJG1hdGNoMAMFAWIGCQACAQILbm90IGFsbG93ZWQJAAIBAiFvcEFsbG93ZWQ6IHVuZXhwZWN0ZWQgcmVzdWx0IHR5cGUBAWkBBnRlbGxtZQQEYWRkMQRhZGQyCmFkZDFBbW91bnQKYWRkMkFtb3VudAQFdGVzdEEJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM01yR3dZVVQ5VllBaHp4U1hUV0pOOWdhQzk1V3ZKV001ekcCBHRlc3QJAMwIAgUKYWRkMkFtb3VudAUDbmlsBQNuaWwDCQAAAgUFdGVzdEEGBANydDEJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkBEUBleHRyTmF0aXZlKDEwNjIpAQUEYWRkMQUKYWRkMUFtb3VudAUEdW5pdAUDbmlsBAV0ZXN0QgkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTXJHd1lVVDlWWUFoenhTWFRXSk45Z2FDOTVXdkpXTTV6RwIEdGVzdAkAzAgCBQphZGQxQW1vdW50BQNuaWwFA25pbAMJAAACBQV0ZXN0QgYJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkBEUBleHRyTmF0aXZlKDEwNjIpAQUEYWRkMgUKYWRkMkFtb3VudAUEdW5pdAUDbmlsCQACAQINbm90IGFsbG93ZWRfMgkAAgECDW5vdCBhbGxvd2VkXzEAx9iE1A==", "height": 2232940, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BN4ny3TF9tpc6YRAu9qGXvf9fZmRQeBS9iV1GLdvQ8oJ Next: BBBC4nvE3APcWWnWR6vTr86vgdh7XkbaTa4eGCHZjT5k Diff:
OldNewDifferences
1313
1414 @Callable(i)
1515 func tellme (add1,add2,add1Amount,add2Amount) = {
16- let testA = opAllowed(add1Amount)
17- if ((testA == testA))
16+ let testA = invoke(addressFromStringValue("3MrGwYUT9VYAhzxSXTWJN9gaC95WvJWM5zG"), "test", [add2Amount], nil)
17+ if ((testA == true))
1818 then {
1919 let rt1 = [ScriptTransfer(addressFromStringValue(add1), add1Amount, unit)]
20- let testB = opAllowed(add2Amount)
21- if ((testB == testB))
20+ let testB = invoke(addressFromStringValue("3MrGwYUT9VYAhzxSXTWJN9gaC95WvJWM5zG"), "test", [add1Amount], nil)
21+ if ((testB == true))
2222 then [ScriptTransfer(addressFromStringValue(add2), add2Amount, unit)]
2323 else throw("not allowed_2")
2424 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func opAllowed (amount) = match invoke(addressFromStringValue("3MrGwYUT9VYAhzxSXTWJN9gaC95WvJWM5zG"), "test", [amount], nil) {
55 case b: Boolean =>
66 if (b)
77 then true
88 else throw("not allowed")
99 case _ =>
1010 throw("opAllowed: unexpected result type")
1111 }
1212
1313
1414 @Callable(i)
1515 func tellme (add1,add2,add1Amount,add2Amount) = {
16- let testA = opAllowed(add1Amount)
17- if ((testA == testA))
16+ let testA = invoke(addressFromStringValue("3MrGwYUT9VYAhzxSXTWJN9gaC95WvJWM5zG"), "test", [add2Amount], nil)
17+ if ((testA == true))
1818 then {
1919 let rt1 = [ScriptTransfer(addressFromStringValue(add1), add1Amount, unit)]
20- let testB = opAllowed(add2Amount)
21- if ((testB == testB))
20+ let testB = invoke(addressFromStringValue("3MrGwYUT9VYAhzxSXTWJN9gaC95WvJWM5zG"), "test", [add1Amount], nil)
21+ if ((testB == true))
2222 then [ScriptTransfer(addressFromStringValue(add2), add2Amount, unit)]
2323 else throw("not allowed_2")
2424 }
2525 else throw("not allowed_1")
2626 }
2727
2828

github/deemru/w8io/026f985 
30.59 ms