mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +01:00
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();
|
||
|
}
|