Skip to content

Commit b41be0d

Browse files
committed
fix(zk:link): new nonce types
1 parent 7a75263 commit b41be0d

File tree

2 files changed

+38
-37
lines changed

2 files changed

+38
-37
lines changed

Cargo.lock

Lines changed: 35 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/strategy/zksync/src/executor/runner.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ impl ZksyncExecutorStrategyRunner {
5252
// fetch the full nonce to preserve account's tx nonce
5353
let full_nonce = executor.backend.storage(address, slot)?;
5454
let full_nonce = foundry_zksync_core::state::parse_full_nonce(full_nonce);
55-
let new_full_nonce = foundry_zksync_core::state::new_full_nonce(full_nonce.tx_nonce, nonce);
55+
let new_full_nonce =
56+
foundry_zksync_core::state::new_full_nonce(full_nonce.tx_nonce, nonce as u128);
5657
executor.backend.insert_account_storage(address, slot, new_full_nonce)?;
5758

5859
Ok(())
@@ -113,7 +114,7 @@ impl ExecutorStrategyRunner for ZksyncExecutorStrategyRunner {
113114
let full_nonce = executor.backend.storage(address, slot)?;
114115
let full_nonce = foundry_zksync_core::state::parse_full_nonce(full_nonce);
115116

116-
Ok(full_nonce.tx_nonce)
117+
Ok(full_nonce.tx_nonce as u64)
117118
}
118119

119120
fn link(

0 commit comments

Comments
 (0)