简体   繁体   English

如何部署超过 25kb 的合约?

[英]How to deploy contract over 25kb?

How is it possible that contract over size limitation is deployed on main net?超出大小限制的合约怎么可能部署在主网上?

https://bscscan.com/address/0xb8a5e028f833f08a29564ded368b4cacb4e18ff5#code https://bscscan.com/address/0xb8a5e028f833f08a29564ded368b4cacb4e18ff5#code

The linked contract bytecode has a length of 37,684 hex characters, which is 18,842 bytes.链接合约字节码的长度为 37,684 个十六进制字符,即 18,842 个字节。

Which is below the limit of 24,576 bytes (hex value 0x6000) specified in the EIP-170 .这低于EIP-170中指定的 24,576 字节(十六进制值 0x6000)的限制。

Use import.使用导入。 eg import./anotherSolidityCode.sol OR import "https://github.com/some/codes.sol" etc.例如import./anotherSolidityCode.solimport "https://github.com/some/codes.sol"等。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 计划合同违规错误 - scheme contract violation error 如何解决 ParserError:预期的编译指示、导入指令或合同/接口/库/结构/枚举/常量/函数/错误定义。 坚定不移 - how to solve ParserError: Expected pragma, import directive or contract/interface/library/struct/enum/constant/function/error definition. in soliduty 使用“When else”时出现超过 64 KB 错误 - Grows beyond 64 KB Error when using “When Otherwise” Contract.Assert不会抛出编译错误 - Contract.Assert do not throw compilation error Algorand 智能合约 TEAL 模板示例编译错误 - Compilation Error on Algorand Smart Contract TEAL Template Examples Solidity 智能合约代码中的预期未知错误 - Remix - Solidity Expected unidentified error in smart contract code - Remix 如何遍历地图 <String,String> 和地图 <String,Map<String,String> &gt;使用相同的递归函数? - How to iterate over Map<String,String> and Map<String,Map<String,String>> using the same recursion function? 如何通过引用对用户定义对象的类型集(STL)的数组元素进行增强迭代? - How to enhance-iterate by reference over an array element that's of type set (STL) of user-defined objects? libdft_api.h:36:25:致命错误:sys / syscall.h:没有此类文件或目录 - libdft_api.h:36:25: fatal error:sys/syscall.h:No such file or directory 如何在Intellij中调出悬停菜单以查找错误,而不将鼠标悬停在该菜单上? - How do I bring up the hover menu for an error in Intellij without mousing over it?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM