Error: There was a timeout while attempting to connect to the network at undefined
truffle migrate --network sepolia
报错
Error: There was a timeout while attempting to connect to the network at undefined. Check to see that your provider is valid. If you have a slow internet connection, try configuring a longer timeout in your Truffle config. Use the networks[networkName].networkCheckTimeout property to do this.
修改 响应时间 timeourBlocks
// Sepolia test network sepolia: { provider: () => new HDWalletProvider( mnemonic, 'https://sepolia.infura.io/v3/bb2a88f743ed40e99962551532690b2d' ), network_id: 11155111, // Sepolia's network id gas: 4500000, // gasPrice: 10000000000, confirmations: 10, timeoutBlocks: 58000, skipDryRun: true },