tx · 9SucZkgRaeQN42bYCtauYD2TMv2mbjgek8XUwbKR43jH
3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq: -0.01000000 Waves
2023.06.20 10:23 [2630655] smart account 3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq > SELF 0.00000000 Waves
{
"type": 13,
"id": "9SucZkgRaeQN42bYCtauYD2TMv2mbjgek8XUwbKR43jH",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1687245822589,
"version": 2,
"chainId": 84,
"sender": "3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq",
"senderPublicKey": "57SkjQUEwC1ayCqLbXLuzBqifK6B6SR6rfxtGsbAo3zW",
"proofs": [
"5Y6iZMms77wWfD4uuXYpHb8BBrmDiyZT6fMiCmnHNcXcZMZuEakH1smjPjJy6x2a8zQ2EiVCQWp9XkgwVd4RB8KB"
],
"script": "base64:BgICCAIBARFnZXRBZGRyZXNzQmFsYW5jZQINYWRkcmVzc1N0cmluZw1hc3NldElkU3RyaW5nBAdhZGRyZXNzCQERQGV4dHJOYXRpdmUoMTA2MikBBQ1hZGRyZXNzU3RyaW5nAwkAAAIFDWFzc2V0SWRTdHJpbmcCBVdBVkVTCAkA7wcBBQdhZGRyZXNzB3JlZ3VsYXIEB2Fzc2V0SWQJANkEAQUNYXNzZXRJZFN0cmluZwkA8AcCBQdhZGRyZXNzBQdhc3NldElkAADu/GW/",
"height": 2630655,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: GEAmUSPSdbA6jcRtyGUL26pQsScaZfjVTMSN6pYwQchv
Next: 9KfYKRG3dzxJHQ5fRNycES6AMrv4WDrAYGV1ybFovkdA
Diff:
Old | New | | Differences |
---|
6 | 6 | | if ((assetIdString == "WAVES")) |
---|
7 | 7 | | then wavesBalance(address).regular |
---|
8 | 8 | | else { |
---|
9 | | - | let assetId = toBytes(assetIdString) |
---|
| 9 | + | let assetId = fromBase58String(assetIdString) |
---|
10 | 10 | | assetBalance(address, assetId) |
---|
11 | 11 | | } |
---|
12 | 12 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func getAddressBalance (addressString,assetIdString) = { |
---|
5 | 5 | | let address = addressFromStringValue(addressString) |
---|
6 | 6 | | if ((assetIdString == "WAVES")) |
---|
7 | 7 | | then wavesBalance(address).regular |
---|
8 | 8 | | else { |
---|
9 | | - | let assetId = toBytes(assetIdString) |
---|
| 9 | + | let assetId = fromBase58String(assetIdString) |
---|
10 | 10 | | assetBalance(address, assetId) |
---|
11 | 11 | | } |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|