Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Scroll dev 1115 #222

Closed
wants to merge 48 commits into from
Closed

Scroll dev 1115 #222

wants to merge 48 commits into from

Conversation

lispc
Copy link

@lispc lispc commented Nov 16, 2022

TODO:

  1. multi block for public_input circuit / tx circuit.
  2. comment tx->block_num lookup in End(Inner)Blcok

Ok(w) => format!("{:?}", w),
Err(_) => "".to_string(),
}
} else if geth_step.op.is_call6() {

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> {

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 ?

Copy link
Author

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]);

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.

@lispc
Copy link
Author

lispc commented Dec 13, 2022

close in favor of #229

@lispc lispc closed this Dec 13, 2022
@lispc lispc closed this Dec 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants