Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

No way to avoid truffle gas price check using the lib in node console #303

Closed
come-maiz opened this issue Oct 19, 2018 · 1 comment
Closed
Labels
kind:enhancement Enhancement to an existing feature topic:dx Issue that affects developer experience

Comments

@come-maiz
Copy link
Contributor

In a node console, I tried to run the following commands:

> var Web3 = require('web3')
> web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:9545"))
> const { Contracts, SimpleProject } = require('zos-lib')
> const MyContract = Contracts.getFromLocal('MyContract')
> myProject = new SimpleProject('MyProject', { from: web3.eth.accounts[0] });
> myProject.createProxy(MyContract)

The last step fails saying:
Error: Cowardly refusing to execute transaction with gas price set to Truffle's default of 100 gwei. Consider explicitly setting a different value in your truffle.js file.

I changed the gas price on my truffle.js before starting truffle develop, but the error is the same.
truffle.js:

module.exports = {
  networks: {
    development: {
      host: 'localhost',
      network_id: '*',
      port: 9545,
      gas: 250000,
      gasPrice: 200000000,
    }
  }
};
@come-maiz come-maiz added kind:enhancement Enhancement to an existing feature topic:dx Issue that affects developer experience component:lib labels Oct 19, 2018
@facuspagnuolo
Copy link
Contributor

Considered fixed on #354 and #359

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind:enhancement Enhancement to an existing feature topic:dx Issue that affects developer experience
Projects
None yet
Development

No branches or pull requests

2 participants