blockchain - 币安智能链部署时超时错误
问题描述
在 Binance Smart Chain 中部署合约时出现错误
如果有人知道,请帮助我
错误信息看起来像这样
Deploying 'WhitePaperInterestRateModel'
---------------------------------------
> transaction hash: 0xa24026a456f81238422b262cc49bcb9ee494997b70ea8d41c092710f98b27d50
⠧ Blocks: 23 Seconds: 69Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({
code: -32603,
message: 'ETIMEDOUT',
data: { originalError: { code: 'ETIMEDOUT', connect: true } },
stack: 'Error: ETIMEDOUT\n' +
' at Timeout.<anonymous> (/Users/hyunki/Desktop/compound/compound_test/truffle-compound-bsc/venus-protocol/node_modules/request/request.js:848:19)\n' +
' at listOnTimeout (node:internal/timers:556:17)\n' +
' at processTimers (node:internal/timers:499:7)'
})
at new NodeError (node:internal/errors:329:5)
at Web3ProviderEngine.emit (node:events:368:17)
at /Users/hyunki/Desktop/compound/compound_test/truffle-compound-bsc/venus-protocol/node_modules/@trufflesuite/web3-provider-engine/index.js:57:14
at afterRequest (/Users/hyunki/Desktop/compound/compound_test/truffle-compound-bsc/venus-protocol/node_modules/@trufflesuite/web3-provider-engine/index.js:151:21)
at /Users/hyunki/Desktop/compound/compound_test/truffle-compound-bsc/venus-protocol/node_modules/@trufflesuite/web3-provider-engine/index.js:176:21
at /Users/hyunki/Desktop/compound/compound_test/truffle-compound-bsc/venus-protocol/node_modules/@trufflesuite/web3-provider-engine/index.js:238:9
at /Users/hyunki/Desktop/compound/compound_test/truffle-compound-bsc/venus-protocol/node_modules/async/internal/once.js:12:16
at replenish (/Users/hyunki/Desktop/compound/compound_test/truffle-compound-bsc/venus-protocol/node_modules/async/internal/eachOfLimit.js:61:25)
at /Users/hyunki/Desktop/compound/compound_test/truffle-compound-bsc/venus-protocol/node_modules/async/internal/eachOfLimit.js:71:9
at eachLimit (/Users/hyunki/Desktop/compound/compound_test/truffle-compound-bsc/venus-protocol/node_modules/async/eachLimit.js:43:36)
at /Users/hyunki/Desktop/compound/compound_test/truffle-compound-bsc/venus-protocol/node_modules/async/internal/doLimit.js:9:16
at end (/Users/hyunki/Desktop/compound/compound_test/truffle-compound-bsc/venus-protocol/node_modules/@trufflesuite/web3-provider-engine/index.js:217:5)
at Request._callback (/Users/hyunki/Desktop/compound/compound_test/truffle-compound-bsc/venus-protocol/node_modules/@trufflesuite/web3-provider-engine/subproviders/rpc.js:36:21)
at self.callback (/Users/hyunki/Desktop/compound/compound_test/truffle-compound-bsc/venus-protocol/node_modules/request/request.js:185:22)
at Request.emit (node:events:379:20)
at Timeout.<anonymous> (/Users/hyunki/Desktop/compound/compound_test/truffle-compound-bsc/venus-protocol/node_modules/request/request.js:851:16)
at listOnTimeout (node:internal/timers:556:17)
at processTimers (node:internal/timers:499:7)
松露-config.js
testnet: {
provider: () => new HDWalletProvider(mnemonic, `https://data-seed-prebsc-1-s2.binance.org:8545/`),
network_id: 97,
gas: 20000000, // Ropsten has a lower block limit than mainnet
gasPrice: 20000000000, // 20 gwei (in wei) (default: 100 gwei)
confirmations: 1,
timeoutBlocks: 50000,
skipDryRun: true
},
我在下面的页面上找到了端点
解决方案
推荐阅读
- java - JDK 11 编译类文件失败并出现 OOM 异常
- python - 根据行值返回列的平均值
- c++ - GDB MinGW-w64如何跨过函数指针?
- php - 单击登录按钮转到 404 Page Not Found (CodeIgniter)
- php - 使用 cURL 获得 While 循环?
- java - 正则表达式(正则表达式)。如何忽略或排除介于两者之间的所有内容?
- android - 在片段内设置具有网格布局的回收站视图/卡片视图
- c# - 实体框架 - 选择一个固定的数字数组作为查询的列
- windows - 在 Windows 中激活 conda 环境时如何更改目录
- java - 自动记录在 catch 块中,仅当注释异常变量时,对于 Java 或 Kotlin