Skip to content

Commit

Permalink
Merge pull request #25 from jordanmurkin/release/1.0.7
Browse files Browse the repository at this point in the history
Release 1.0.7
  • Loading branch information
jordanmurkin authored Aug 25, 2022
2 parents f75fb92 + 6bdce01 commit 3d81aac
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ CONFIG.ethereum_host = process.env.ETHEREUM_HOST || 'http://localhost:8545';
CONFIG.ethereum_account = process.env.ETHEREUM_ACCOUNT || '0x0';
CONFIG.ethereum_account_private_key = process.env.ETHEREUM_ACCOUNT_PRIVATE_KEY || 'PRIVATE_KEY';

CONFIG.ethereum_gas_price = Number(process.env.ETHEREUM_GAS_PRICE) || 5000000000;

module.exports = CONFIG;
2 changes: 2 additions & 0 deletions lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ BUILD_DIRECTORY=${BUILD_DIRECTORY}
ETHEREUM_HOST=http://localhost:8545
ETHEREUM_ACCOUNT=0x0
ETHEREUM_ACCOUNT_PRIVATE_KEY=0x0
ETHEREUM_GAS_PRICE=5000000000
`;

const init = () => {
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/DeploymentHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class DeploymentHelper {

const transactionObject = {
from: CONFIG.ethereum_account,
gasPrice: '50',
gasPrice: CONFIG.ethereum_gas_price,
data: encodedAbi
};

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fudge-cli",
"version": "1.0.6",
"version": "1.0.7",
"description": "A simple Solidity contract deployer",
"main": "./lib/index.js",
"scripts": {
Expand Down

0 comments on commit 3d81aac

Please sign in to comment.