mirror of
https://github.com/FlipsideCrypto/chainwalkers-utils.git
synced 2026-02-06 10:06:43 +00:00
7 lines
157 B
Python
7 lines
157 B
Python
def hex_to_decimal(hex_value):
|
|
if hex_value == '0x':
|
|
return 0
|
|
return int(hex_value, 16)
|
|
|
|
def decimal_to_hex(decimal):
|
|
return hex(decimal) |