问候
我将从编写总体配置开始(系统、版本、智能合同的总体构想)。
2-然后我将显示主要问题(使用小代码行,我认为它需要编辑)。
第3-第三部分,我将展示我到目前为止所尝试的内容和结果。
4-在结束时,我将为我的完整代码添加github链接。
当造币文件(tokenurl)的大小小于23.8kb(小于23.8kb)时,每件事情都工作得很好。其中我的目标是这个大小两倍的薄荷文件(每个令牌file等于50)。因此,当尝试使用大小为(23.8KB< size < 50 Kb)的时,我将收到下一个错误消息。
An unexpected error occurred:
Error: ERROR processing /home/naive/demos/secondtry/deploy/01_Deploy_SVGNFT.js:
Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"name":"ProviderError","code":-
32000,"_isProviderError":true}, method="estimateGas", transaction={"from":"metamask wallet address","to":"contract address",tx = await svgNFT.create(svg)tx = await svgNFT.create(svg, {gasLimit: 3000000 })tx = await svgNFT.create(svg)tx = await svgNFT.create({svg}, {gasLimit: 3000000 })d-完整代码的下一个github链接(契约、部署、hardhat.config.js、helper-hardhat-config.js和包含(预制令牌full )的img文件夹)。
https://github.com/naive2022/onchainfork
发布于 2022-02-07 14:35:08
在部署(测试)特定事务时设置气体限制。
这与硬帽子配置中的气体限制是分开的。
https://ethereum.stackexchange.com/questions/121024
复制相似问题