文章
视频
课程
百科图谱
集训营
更多
问答
提问
发表文章
专栏
活动
文档
工作
集市
发现
Toggle navigation
文章
问答
视频
课程
集训营
专栏
活动
工作
文档
集市
搜索
登录/注册
部署 UniswapV3Factory 合约, 合约太大,优化完之后还是太大部署失败,怎么解决
0 条评论
请先
登录
后评论
默认排序
时间排序
4 个回答
Tiny熊
2025-06-19 09:19
擅长:智能合约,以太坊
开启 IR 优化应该就可以了
请先
登录
后评论
寻月隐君
2025-06-19 11:08
开启了也不行, 还是太大
请先
登录
后评论
Alan
2025-08-02 11:35
用Foundry 部署, https://github.com/gpteth/pool-1/blob/main/T002_UniswapV3Deploy/Pool%20contract%20deploy 这是我写的教程
请先
登录
后评论
寻月隐君
2025-08-02 15:06
测试不行, ```bash │ └─ ← [Return] └─ ← [Return] Script ran successfully. == Logs == Deploying contracts with the account: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 UniswapV3Factory deployed to: 0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690 Error: `UniswapV3Factory` is above the contract size limit (26968 > 24576). Do you wish to continue? yes ## Setting up 1 EVM. ========================== Simulated On-chain Traces: [5494987] → new UniswapV3Factory@0xc3e53F4d16Ae77Db1c982e75a937B9f60FE63690 ├─ emit OwnerChanged(oldOwner: 0x0000000000000000000000000000000000000000, newOwner: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266) ├─ emit FeeAmountEnabled(fee: 500, tickSpacing: 10) ├─ emit FeeAmountEnabled(fee: 3000, tickSpacing: 60) ├─ emit FeeAmountEnabled(fee: 10000 [1e4], tickSpacing: 200) └─ ← [Return] 26968 bytes of code ========================== Chain 560048 Estimated gas price: 2.124997919 gwei Estimated total gas used for script: 7759714 Estimated amount required: 0.016489376102035166 ETH ========================== Transactions saved to: /Users/qiaopengjun/Code/Solidity/uniswap-v3-core-research/broadcast/UniswapV3Factory.s.sol/560048/run-latest.json Sensitive values saved to: /Users/qiaopengjun/Code/Solidity/uniswap-v3-core-research/cache/UniswapV3Factory.s.sol/560048/run-latest.json Error: Failed to send transaction Context: - server returned an error response: error code -32003: insufficient funds for gas * price + value: have 210000001470 want 16489376102035166 ```
请先
登录
后评论
您需要登录后才可以回答问题,
登录
关注
3
关注
收藏
0
收藏,
2556
浏览
寻月隐君
提出于 2025-06-18 16:03
×
发送私信
请将文档链接发给晓娜,我们会尽快安排上架,感谢您的推荐!
发给:
内容:
×
举报此文章
垃圾广告信息:
广告、推广、测试等内容
违规内容:
色情、暴力、血腥、敏感信息等内容
不友善内容:
人身攻击、挑衅辱骂、恶意行为
其他原因:
请补充说明
举报原因: