-
Notifications
You must be signed in to change notification settings - Fork 929
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
eip3860 #3650
Conversation
✅ Deploy Preview for remixproject ready!
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}", |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
This comment was marked as resolved.
Sorry, something went wrong.
afdee6a
to
8c03a97
Compare
3ebb999
to
677d463
Compare
425ed12
to
7a0e9b7
Compare
7a0e9b7
to
351c8c3
Compare
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).