mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 08:09:15 +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();
|
||
|
}
|