Skip to content

Commit

Permalink
fix issue with importing ui module space inside shared (#11254)
Browse files Browse the repository at this point in the history
  • Loading branch information
brad-decker authored Jun 8, 2021
1 parent 1080319 commit bd9762e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions shared/constants/gas.js
Original file line number Diff line number Diff line change
@@ -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)),
};

0 comments on commit bd9762e

Please sign in to comment.