Skip to content

Commit

Permalink
fix(contractsConfig): fix using ints as gas and gasPrice
Browse files Browse the repository at this point in the history
  • Loading branch information
jrainville authored and iurimatias committed Feb 22, 2019
1 parent c5e29b7 commit dd14262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/embark/src/lib/utils/contractsConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ export function prepare(config: any) {
const args = config.contracts[contractName].args;
const onDeploy = config.contracts[contractName].onDeploy;

if (gas && gas.match(unitRegex)) {
if (gas && gas.toString().match(unitRegex)) {
config.contracts[contractName].gas = utils.getWeiBalanceFromString(gas, web3);
}

if (gasPrice && gasPrice.match(unitRegex)) {
if (gasPrice && gasPrice.toString().match(unitRegex)) {
config.contracts[contractName].gasPrice = utils.getWeiBalanceFromString(gasPrice, web3);
}

Expand Down

0 comments on commit dd14262

Please sign in to comment.