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

eip3860 #3650

Merged
merged 5 commits into from
May 3, 2023
Merged

eip3860 #3650

merged 5 commits into from
May 3, 2023

Conversation

yann300
Copy link
Contributor

@yann300 yann300 commented Apr 25, 2023

fix #3640

in order to test eip170, compile and deploy https://github.com/yann300/remix-reward (without optimization enabled).

in order to test eip3860, update remix reward to have a unique param for the constructor: bytes32 compile, copy the bytecode from (the solidity tab), go to udapp, deploy remix reward using the previously copied data.
(note that the copied bytecode can be anything it is really just to have enough data to reach max code size).

@netlify
Copy link

netlify bot commented Apr 25, 2023

Deploy Preview for remixproject ready!

Name Link
🔨 Latest commit 351c8c3
🔍 Latest deploy log https://app.netlify.com/sites/remixproject/deploys/64521bf7375c0700080d5123
😎 Deploy Preview https://deploy-preview-3650--remixproject.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@@ -27,7 +27,7 @@
"udapp.contractOptionsTitle3": "选择并编译 *.sol 文件以部署或访问合约。",
"udapp.contractOptionsTitle4": "当有编译的 .sol 文件时,选择 {br} 合约进行部署或与 AtAddress 一起使用。",
"udapp.checkSumWarning": "您似乎没有使用 checksumed address 。{br} checksumed address 是包含大写字母的地址,如 {a} 中所指定。{br} checksumed address 旨在帮助防止用户将交易发送到错误地址。",
"udapp.isOverSizePrompt": "合约创建初始化返回长度超过24576字节的数据。部署可能会失败。 {br}更多信息:{a}",
"udapp.isOverSizePromptEip170": "合约创建初始化返回长度超过24576字节的数据。部署可能会失败。 {br}更多信息:{a}",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot to add translation for udapp.isOverSizePromptEip3860

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added the "translation" label, for @ryestew.

const encodedParams = await txFormat.encodeParams(args, txHelper.getConstructorInterface(contract.object.abi))
const bytecode = contract.object.evm.bytecode.object + (encodedParams as any).dataHex
// https://eips.ethereum.org/EIPS/eip-3860
const initCodeOversize = (bytecode && bytecode.length / 2 > 2 * 24576)
Copy link
Member

@ioedeveloper ioedeveloper Apr 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you separate the condition with brackets to make it easier to read?

}
{
values.overSizeEip3860 && <div>
<FormattedMessage id='udapp.isOverSizePromptEip3860' values={{ br: <br />, a: <a href="https://eips.ethereum.org/EIPS/eip-3860" target="_blank" rel="noreferrer">eip-170</a> }} />

This comment was marked as resolved.

@Aniket-Engg Aniket-Engg force-pushed the fix_contract_size_max branch 2 times, most recently from 3ebb999 to 677d463 Compare April 28, 2023 12:30
@yann300 yann300 force-pushed the fix_contract_size_max branch 2 times, most recently from 425ed12 to 7a0e9b7 Compare May 3, 2023 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support EIP3860 after Shanghai upgrade
3 participants