-
Notifications
You must be signed in to change notification settings - Fork 392
Conversation
* Add log error when returndata.len() != value from RETURNDATASIZE * Update return data correctly * Add rw writes for restoring context in CREATE(2) * Fix most tests * Fix final test * Set max_rws = 0 to unbreak common-rs Co-authored-by: Mason Liang <[email protected]>
This reverts commit d88e35e.
Ok(w) => format!("{:?}", w), | ||
Err(_) => "".to_string(), | ||
} | ||
} else if geth_step.op.is_call6() { |
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.
oh, is_call6
and is_call7
means pop 6 or 7 item from stack after think a while , rename to is_call_callcode
is_static_delegate_call
seems better reading
@@ -100,6 +100,17 @@ impl<P: JsonRpcClient> GethClient<P> { | |||
.await | |||
.map_err(|e| Error::JSONRpcError(e.into())) | |||
} | |||
/// .. | |||
pub async fn get_tx_by_hash(&self, hash: H256) -> Result<Transaction, Error> { |
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.
this rpc call targets on L2geth node right ?
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.
both l1 and l2 work. This rpc is intended to be used to mock prove single tx.
// if overflows this opcode would fails current context, so | ||
// there is no more steps. | ||
if !(geth_steps.len() == 1 || geth_steps[1].depth != geth_steps[0].depth) { | ||
log::warn!("read return data overflow, step {:?}", geth_steps[0]); |
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.
seems ErrReturnDataOutOfBounds
we will handle in the future.
…o scroll-dev-1115
…ts into scroll-dev-1115
…ts into scroll-dev-1115
close in favor of #229 |
7078d97
to
d3a8270
Compare
TODO: