AlayaNetwork / alaya-truffle

Alaya-truffle
1 stars 1 forks source link

Support HDWallet provider #1

Open Vivi728 opened 3 years ago

Vivi728 commented 3 years ago

We hope that by adapting the HDWallet provider, users can use HDWallet locally by modifying truffle-config.js. In this way, developers can sign locally through HDWallet when deploying the contract and send it to the blockchain network to implement the deployment of the contract.

Here is a configuration example of the network part of the configuration file:

const mnemonic = "scrub quality dune window title attitude merry fuel expire flock hungry kidney"

networks: { development :{ provider: function () { return new HDWalletProvider(mnemonic,'http://47.241.91.2:6789') }, network_id: "*", }, }

biganxin commented 3 years ago

@fksyuan