Error deploying in local
Closed this issue · 1 comments
onmax commented
Deploying contracts in a local node is giving an error
How to reproduce it? Can also see this gist
- Branch
develop
, with last commit - Using
node v14.16.0
- Installing dependencies using
npm install
- (*) Using a local geth server:
geth --miner.gasprice 0 --http --http.corsdomain="https://remix.ethereum.org" --http.api web3,eth,debug,personal,net --vmdebug --datadir /tmp/geth --dev console
- Run in another terminal:
npm run migrateLocal
* This problem has also been tested with ganache in a docker
Error
Running the last command will return the following error (geth on the left and deploy on the right):
Workaround
Before, publishing this issue, I've talked with @VictorNS69 which gave me a patch to solve this issue:
- Update dependencies
- Update migrations scripts (5 and 6 have been not fixed)
You can see those changes in this PR in my own repository
Probably, there is a better way of addressing this issue but we don't know how
VictorNS69 commented
The problem (I think) is that when I try to add these flags { gas: 0x6691b7, gasPrice: 0x0 }
to the truffle-config.js
file, they do not seem to load and are not set.
Does anyone know if I am doing something wrong, or maybe it is a truffle bug?
We also updated truffle dependencies:
"@truffle/config": "1.3.1",
"@truffle/hdwallet-provider": "1.4.2",
"keythereum": "1.2.0",
"remixd": "0.2.4-alpha.0",
"truffle": "5.4.2"
Thank you in advance!