tx · CSQ5CdouS811kjkQ2TSe67nAfHFguYNCUp91VvStf7rB
3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq: -0.01000000 Waves
2023.05.22 10:48 [2588895] smart account 3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq > SELF 0.00000000 Waves
{
"type": 13,
"id": "CSQ5CdouS811kjkQ2TSe67nAfHFguYNCUp91VvStf7rB",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1684741767378,
"version": 2,
"chainId": 84,
"sender": "3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq",
"senderPublicKey": "57SkjQUEwC1ayCqLbXLuzBqifK6B6SR6rfxtGsbAo3zW",
"proofs": [
"9muZEPeQuuhhGh4MkDKEj2jEaBsMYVfoNjnLtTs7TeihvR76ZQjBuLUDYj2W79j6Ci5Z6KUahdfgLgi6v97j7x4"
],
"script": "base64:BgIECAISAAEBDnVwZGF0ZUludGVybmFsAAQOc2V0dGVyQ29udHJhY3QJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNNdTVrYXNaODVWWTV4VUNwUFlvV3I2ZkJ6aDZlR1p3Y250BAJubgoAAUAJAPwHBAUOc2V0dGVyQ29udHJhY3QCBmdldE51bQUDbmlsBQNuaWwDCQABAgUBQAIDSW50BQFACQACAQkArAICCQADAQUBQAIYIGNvdWxkbid0IGJlIGNhc3QgdG8gSW50CQCUCgIJAMwIAgkBDEludGVnZXJFbnRyeQICCUNvcHlWYWx1ZQkAZAIJARFAZXh0ck5hdGl2ZSgxMDUwKQIFDnNldHRlckNvbnRyYWN0AghudW1WYWx1ZQUCbm4FA25pbAUEdW5pdAEBaQEGdXBkYXRlAAkBDnVwZGF0ZUludGVybmFsAAAFKOi1",
"height": 2588895,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8CD9LzoD8WKNBga824BVcjDCqZhCF6UTqgaH8YBFhz12
Next: GEAmUSPSdbA6jcRtyGUL26pQsScaZfjVTMSN6pYwQchv
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func updateInternal () = { |
---|
5 | 5 | | let setterContract = addressFromStringValue("3Mu5kasZ85VY5xUCpPYoWr6fBzh6eGZwcnt") |
---|
6 | 6 | | let nn = { |
---|
7 | 7 | | let @ = invoke(setterContract, "getNum", nil, nil) |
---|
8 | 8 | | if ($isInstanceOf(@, "Int")) |
---|
9 | 9 | | then @ |
---|
10 | 10 | | else throw(($getType(@) + " couldn't be cast to Int")) |
---|
11 | 11 | | } |
---|
12 | 12 | | $Tuple2([IntegerEntry("CopyValue", (getIntegerValue(setterContract, "numValue") + nn))], unit) |
---|
13 | 13 | | } |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | @Callable(i) |
---|
17 | 17 | | func update () = updateInternal() |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|