Add uint256_to_decimal to replace tostring256

TODO: replace tostring256 everywhere
This commit is contained in:
TamtamHero
2021-05-06 22:34:12 +02:00
committed by pscott
parent 40664a65f1
commit e80207cf6f
2 changed files with 28 additions and 3 deletions

View File

@@ -32,6 +32,8 @@ int local_strchr(char* string, char ch);
// throw if the size is > 4.
uint32_t u32_from_BE(uint8_t* in, uint8_t size, bool strict);
bool uint256_to_decimal(const uint8_t *value, char *out, size_t out_len);
void amountToString(uint8_t* amount,
uint8_t amount_len,
uint8_t decimals,