Skip to content

Commit

Permalink
Added decimal places to the token response (#161)
Browse files Browse the repository at this point in the history
Co-authored-by: TheDude <[email protected]>
  • Loading branch information
DavidGershony and TheDude authored Sep 10, 2022
1 parent 4e4b5a4 commit 30d9412
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Blockcore.Indexer.Cirrus/Models/QueryStandardToken.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ public class QueryStandardToken
public long TotalSupply { get; set; }
public string Address { get; set; }
public long Amount { get; set; }

public long Decimals { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ public async Task<QueryResult<QueryStandardToken>> GetStandardTokensForAddressAs
Amount = _.AmountChangesHistory.Sum(a => a.Amount),
Name = smartContract.Name,
Symbol = smartContract.Symbol,
TotalSupply = smartContract.TotalSupply
TotalSupply = smartContract.TotalSupply,
Decimals = smartContract.Decimals
};
});

Expand Down

0 comments on commit 30d9412

Please sign in to comment.