Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contract size issue #24

Closed
blockchain5992 opened this issue Nov 14, 2022 · 1 comment
Closed

Contract size issue #24

blockchain5992 opened this issue Nov 14, 2022 · 1 comment

Comments

@blockchain5992
Copy link

Getting contract size issue as while compiling the size of contract is 13.631 (kiB) but while compiling through Remix Got contract size limit excedded.
I tried with both enabling and disabling optimizer. Previously it worked fine.

@ItsNickBarry
Copy link
Owner

Without further evidence, my assumption is that it's an issue with Remix or your configuration. This plugin simply reads the Hardhat-generated bytecode directly and calculates its length:

const size = Buffer.from(
deployedBytecode.replace(/__\$\w*\$__/g, '0'.repeat(40)).slice(2),
'hex'
).length;

Reopen if you can demonstrate that the issue is caused by the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants