matter-labs / foundry-zksync

Fork of Foundry tailored for zkSync environment
Apache License 2.0
299 stars 130 forks source link

fix(zk): merge code storage & nonce with zk-zk #499

Closed Karrq closed 3 months ago

Karrq commented 3 months ago

Motivation

After #497 report, investigation led to find that the cause was the incorrectly read value from ZK storage, done when migrating back to EVM, which lead to the checks inserted by solidity to fail.

Solution

Also migrate account code storage & nonce when switching between ZK forks