mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 11:28:51 +01:00
6e13524bcd
Co-authored-by: metamaskbot <metamaskbot@users.noreply.github.com> Co-authored-by: Brad Decker <bhdecker84@gmail.com> Co-authored-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
13 lines
304 B
JavaScript
13 lines
304 B
JavaScript
import { conversionUtil } from '../modules/conversion.utils';
|
|
|
|
export function hexToDecimal(hexValue) {
|
|
return conversionUtil(hexValue, {
|
|
fromNumericBase: 'hex',
|
|
toNumericBase: 'dec',
|
|
});
|
|
}
|
|
|
|
export function getTokenValueParam(tokenData = {}) {
|
|
return tokenData?.args?._value?.toString();
|
|
}
|