How is the truffle port set when one runs truffle unbox react
and then truffle develop
?
The documentation states that the default port is 9545 (https://trufflesuite.com/docs/truffle/getting-started/using-truffle-develop-and-the-console.html), but the port specified in the downloaded truffle-config.js is 8545, which is supposed to be the default port when Ganache is the client.
I also noticed that the default port specified here :
https://github.com/truffle-box/react-box/blob/master/client/src/getWeb3.js
is 8545:
// Fallback to localhost; use dev console port by default...
else {
const provider = new Web3.providers.HttpProvider(
"http://127.0.0.1:8545"
);
Can someone help shed light on this ?