Closed alepc253 closed 5 years ago
Hi @alepc253 unfortunately the term networkId
has significance in the context of multi-network Ethereum and it would be very easy for users to mistake this field as the ID of the network to which they're connecting (as returned by the net_version
RPC call). Instead I think it's a better approach to let the user define the entire HD path rather than this portion of it.
That said, thanks so much for contributing!
truffle-hdwallet-provider
is hardcoded to derive only Ethereum addresses. Other networks, RSK for example, derive their addresses using different dpaths. This PR adds a new parameternetworkId
to the provider constructor (with ethereum60
as default) and uses it to make dpath configurable.