{"id":19125750,"url":"https://github.com/zeroekkusu/max-code-size-tester","last_synced_at":"2026-06-12T20:32:31.755Z","repository":{"id":254304027,"uuid":"846125272","full_name":"ZeroEkkusu/max-code-size-tester","owner":"ZeroEkkusu","description":"Test the `MAX_CODE_SIZE` of your EVM chain.","archived":false,"fork":false,"pushed_at":"2024-08-23T11:52:08.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T15:58:03.394Z","etag":null,"topics":["eip","evm"],"latest_commit_sha":null,"homepage":"","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZeroEkkusu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-22T15:23:43.000Z","updated_at":"2025-02-14T14:19:25.000Z","dependencies_parsed_at":"2024-08-23T13:02:08.416Z","dependency_job_id":"c40f81b1-15a2-4033-93c2-21067db14c5b","html_url":"https://github.com/ZeroEkkusu/max-code-size-tester","commit_stats":null,"previous_names":["zeroekkusu/runtime-code-size-checker","zeroekkusu/max-code-size-tester"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ZeroEkkusu/max-code-size-tester","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroEkkusu%2Fmax-code-size-tester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroEkkusu%2Fmax-code-size-tester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroEkkusu%2Fmax-code-size-tester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroEkkusu%2Fmax-code-size-tester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZeroEkkusu","download_url":"https://codeload.github.com/ZeroEkkusu/max-code-size-tester/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZeroEkkusu%2Fmax-code-size-tester/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34262155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eip","evm"],"created_at":"2024-11-09T05:36:34.570Z","updated_at":"2026-06-12T20:32:31.723Z","avatar_url":"https://github.com/ZeroEkkusu.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Max Code Size Tester\n\n**Test `MAX_CODE_SIZE` of your EVM.**\n\n[`MAX_CODE_SIZE`](https://eips.ethereum.org/EIPS/eip-170) refers to the maximum length of a smart contract's runtime bytecode.\n\nRuntime bytecode is different from creation bytecode. For example, the Solidity compiler generates creation bytecode (binary) from source code (Solidity). When this creation bytecode is deployed onchain, it gets executed, and returns runtime bytecode, which is set as the code of the smart contract.\n\n## Usage\n\n\u003e [!CAUTION]\n\u003e This program deploys a smart contract onchain to verify `MAX_CODE_SIZE`. If run in a production environment, it will incur real transaction costs. Use only in test networks unless you fully understand the implications.\n\n\u003cdetails\u003e\n\n\u003csummary\u003e\u003cb\u003eI have read and understood the above warning. Show me the usage instructions.\u003c/b\u003e\u003c/summary\u003e\n\n\u003cbr\u003e\n\n**Prerequisites**\n\n```shell\ncurl -L https://foundry.paradigm.xyz | bash\n```\n\n**Get**\n\n```shell\ngit clone git@github.com:ZeroEkkusu/max-code-size-tester.git\ncd max-code-size-tester\nforge install\n```\n\n**Run**\n\n```shell\nforge script MaxCodeSizeTester \\\n  --rpc-url \u003crpc_url\u003e \\\n  --broadcast \\\n  --private-key \u003cprivate_key\u003e \\\n  --sig \"run(uint256)\" \\\n  \u003ccode_size\u003e\n```\n\nIt is recommended to test `code_size` of\n\n- $max - 1$\n- $max$\n- $max + 1$\n\nwhere $max$ is the `MAX_CODE_SIZE` of the EVM in bytes.\n\nOnly $max + 1$ should fail.\n\n\u003c/details\u003e\n\n## License\n​\nLicensed under either of\n\n- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n\n---\n\n© 2024 Zero Ekkusu","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroekkusu%2Fmax-code-size-tester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeroekkusu%2Fmax-code-size-tester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroekkusu%2Fmax-code-size-tester/lists"}