I have runned ganache-cli with this command:
$ ganache-cli --port 8545 --gasLimit 12000000 --accounts 10 --hardfork istanbul --mnemonic test
I have create a truffle project with this command:
$ truffle unbox react
A sample smartcontract is generated in contracts/SimpleStorage.sol
I have tried to deploy this contract on ganache with this command:
$ truffle migrate
I did not made any configuration of HDWallet in truffle-config.js
It is strange but the deployment worked ! I want to understand how this can be possible. gas fees for contract deployment were payed by the first ganache-cli account. I am wondering how his can be possible because truffle didn't know the mnemonic and the accounts private keys.
I just want to understand
Thanks for your help.