1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

fix issue with importing ui module space inside shared (#11254)

This commit is contained in:
Brad Decker 2021-06-08 15:15:28 -05:00 committed by GitHub
parent 1080319b33
commit bd9762e35b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,11 @@
import { addHexPrefix } from 'ethereumjs-util';
import { decimalToHex } from '../../ui/helpers/utils/conversions.util';
const TWENTY_ONE_THOUSAND = 21000;
const ONE_HUNDRED_THOUSAND = 100000;
export const GAS_LIMITS = {
// maximum gasLimit of a simple send
SIMPLE: addHexPrefix(decimalToHex(21_000)),
SIMPLE: addHexPrefix(TWENTY_ONE_THOUSAND.toString(16)),
// a base estimate for token transfers.
BASE_TOKEN_ESTIMATE: addHexPrefix(decimalToHex(100_000)),
BASE_TOKEN_ESTIMATE: addHexPrefix(ONE_HUNDRED_THOUSAND.toString(16)),
};