Comments (5)
I think we should provide utility function with defaults and other option as a comment:
const configTestNetwok = (network, path = "m/44'/60'/0'/0/", gas = 4465030, gasPrice = 10000000000) => ({
provider: () => new HDWalletProvider(
process.env.DEV_MNEMONIC, `https://${network}.infura.io/v3/` + infuraProjectId,
0, 1, true, path
),
networkId: 3,
gas: gas,
gasPrice: gasPrice,
});
ropsten: configTestNetwok('ropsten'),
// support MyEtherWallet
// ropsten: configTestNetwok('ropsten', "m/44'/1'/0'/0/"),
Something like this.
from starter-kit.
Sounds good. We still need to take into account the networkId
as well as parameter because it has an own value for each network (as you certainly know). I will give it a try tomorrow (CET)
from starter-kit.
Hey @itinance. Thanks again for the contribution. One thing I've spotted that metamask is also using a m/44'/60'/0'/0/
derivation path. And a lot of users do use metamask for testnet. I think we should give users options here. What do you think?
from starter-kit.
Whew... that's really a pitty from Metamask. Seems to be more helpful if we leave the code as is and just add a note about it describing the right derivation path for MyCrypto users as a comment.
Or add more records network-config for "ropsten_mycrypto", "kovan_mycrypto"? What would you prefer? I will add these changes then into this PR
from starter-kit.
I've refactored truffle-config so it is easy to config it.
from starter-kit.
Related Issues (20)
- GSN with ERC20 Compliant Smart Contract HOT 6
- Move truffle box to separate repository
- Does not detect Ganache HOT 1
- zos unpack zepkit omits the previous startup instructions. HOT 4
- getGanacheAddresses incorrectly reports no local ganache found HOT 1
- Documentation: add purpose of migrations to README
- Issue in setting up zepkit HOT 5
- Page not found
- Review setup instructions for the end user
- Fix infura API token usage in truffle config HOT 1
- Merge master & stable branches HOT 1
- Integrate GSN into starter-kit HOT 1
- Error: Cannot find module './build/Release/scrypt' HOT 2
- Error: npm install -g [email protected] [email protected] @openzeppelin/[email protected] HOT 2
- Migrate from 3 years old `scrypt` compatible with only Node v10 HOT 3
- Unable to fund my Counter contract HOT 5
- Update versions of global dependencies
- Failed to Compile HOT 11
- Restructure documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starter-kit.