-
Notifications
You must be signed in to change notification settings - Fork 858
Feat/#1519 implement ErrorOutOfGasDynamicMemoryExpansion error state #1567
Feat/#1519 implement ErrorOutOfGasDynamicMemoryExpansion error state #1567
Conversation
* add base impl * fix stack read * fix merge * apply review
3d23a0e
to
01e626b
Compare
memory_address.offset(), | ||
memory_address.length(), | ||
); | ||
let common_error_gadget = CommonErrorGadget::construct(cb, opcode.expr(), 5.expr()); |
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.
We could see the implementation of geth, it only assigns returnData
when this call reverts. Otherwise it clear the returnData
. So, here we shouldn't assign offset
and length
.
memory_address.offset(), | ||
memory_address.length(), | ||
); | ||
let common_error_gadget = CommonErrorGadget::construct(cb, opcode.expr(), 5.expr()); |
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.
Same as above, we shouldn't assign offset
and length
.
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.
LGTM!
…ic_xxx by stackonlyop
0b4f128
to
ddb55fd
Compare
@miha-stopar , could you help review this PR again. I made some changes,
and there was only one commit, ddb55fd. |
…ErrorOutOfGasDynamicMemoryExpansion
9e4e182
to
a2a7b34
Compare
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.
LGTM!
Description
This PR was pulled from Scroll team (scroll-tech#351) and
Issue Link
closed #1519
Type of change