From be20f8d23e5835c2fc726510a77aed84a0eee55f Mon Sep 17 00:00:00 2001 From: Olzhas <oljas.jarasbaev@demlabs.net> Date: Tue, 12 Mar 2024 19:12:16 +0700 Subject: [PATCH] [+] datoshi and coins value --- modules/common/include/dap_chain_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/common/include/dap_chain_common.h b/modules/common/include/dap_chain_common.h index 0e6e94f069..109d128d70 100644 --- a/modules/common/include/dap_chain_common.h +++ b/modules/common/include/dap_chain_common.h @@ -249,7 +249,7 @@ DAP_STATIC_INLINE uint256_t dap_chain_uint256_from_uint128(uint128_t a_from) } #define dap_chain_balance_print dap_uint256_uninteger_to_char -#define dap_chain_balance_scan dap_uint256_scan_uninteger +#define dap_chain_balance_scan(a_balance) (strchr(a_balance, '.') && !strchr(a_balance, '+')) ? dap_uint256_scan_decimal(a_balance) : dap_uint256_scan_uninteger(a_balance) #define dap_chain_balance_to_coins dap_uint256_decimal_to_char #define dap_chain_coins_to_balance dap_uint256_scan_decimal #define dap_chain_uint256_to dap_uint256_to_uint64 -- GitLab