Skip to content

Commit 0d83184

Browse files
chore: Reduce diff with sync layer stable (zkstack) (#3416)
## What ❔ Introduces functions to the zkstack related to Gateway. These are included into the libraries, but are not included into the users interface (CLI itself) and a lot of places contain TODO(EVM-927) to indicate that those are not usable before the Gateway contracts have been merged. Also, as per discussions with @sanekmelnikov it is okay that the first iteration of gateway scripts (esp since those are not usable by the partners yet) use println instead of spinners that are more commonly used in zkstack. For this we have a followup task: EVM-928 ## Why ❔ <!-- Why are these changes done? What goal do they contribute to? What are the principles behind them? --> <!-- Example: PR templates ensure PR reviewers, observers, and future iterators are in context about the evolution of repos. --> ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zkstack dev fmt` and `zkstack dev lint`.
1 parent 057dcdb commit 0d83184

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3478
-22
lines changed

core/lib/basic_types/src/bytecode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ mod tests {
266266
#[test]
267267
fn preparing_evm_bytecode() {
268268
let bytecode_hash =
269-
BytecodeHash::for_evm_bytecode(PROCESSED_EVM_BYTECODE.len(), &PADDED_EVM_BYTECODE);
269+
BytecodeHash::for_evm_bytecode(PROCESSED_EVM_BYTECODE.len(), PADDED_EVM_BYTECODE);
270270
let prepared = trim_padded_evm_bytecode(bytecode_hash, PADDED_EVM_BYTECODE).unwrap();
271271
assert_eq!(prepared, PROCESSED_EVM_BYTECODE);
272272
}

prover/crates/lib/keystore/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ mod tests {
183183
let filepath = basepath.join("commitments.json");
184184

185185
let text = std::fs::read_to_string(&filepath)
186-
.expect(format!("File at {:?} should be read", filepath).as_str());
186+
.unwrap_or_else(|_| panic!("File at {:?} should be read", filepath));
187187

188188
let commitments = serde_json::from_str::<VkCommitmentsLegacy>(&text)
189189
.expect("Vk commitments should be deserialized correctly");

0 commit comments

Comments
 (0)