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

Bug: fix to not invoke transfer for call related opcodes (except CALL)#226

Closed
silathdiir wants to merge 7 commits into
mainfrom
fix/no-transfer-except-call
Closed

Bug: fix to not invoke transfer for call related opcodes (except CALL)#226
silathdiir wants to merge 7 commits into
mainfrom
fix/no-transfer-except-call

Conversation

@silathdiir
Copy link
Copy Markdown

@silathdiir silathdiir commented Dec 8, 2022

Related spec PR privacy-ethereum/zkevm-specs#335

Summary

  1. Fix to not invoke transfer for call related opcodes (CALLCODE, DELEGATECALL and STATICCALL) expect CALL.
  2. Fix to use current_call.value to setup next-call context for DELEGATECALL.
  3. Add function call_context_as_word and fix current_value to Word type in circuit.

* change: Port CopyCircuit to Challenge and Value APIs

The CopyCircuit was not using the Value API for witness assignation.
Therefore, the Challenge API has been integrated in both `configure` and
`synthesize` steps and the `Value<F>` is the default operand.

* change: Port Tx table to Challenge API

Now the `TxTable` uses the `Challenges` in order to assign all the
values on it's columns.

* update: EVM and Super Circuits CopyTable calls

Now that the CopyTable and CopyCircuit use the `Value` and `Challenges`
APIs, the calls from EvmCircuit and SuperCircuit have changed and needed
to be updated.

* update: Cargo.lock

* fix: Remove randomness instance from benchmarks

* fix: Add `value` and `id` columns as SecondPhase
@silathdiir
Copy link
Copy Markdown
Author

Moved to upstream privacy-ethereum#973

@silathdiir silathdiir closed this Dec 8, 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.

3 participants