From e39d55cf84a81ad3f42fd7f57fdb978165717926 Mon Sep 17 00:00:00 2001 From: AronisAt79 <45406504+AronisAt79@users.noreply.github.com> Date: Mon, 27 Nov 2023 14:55:35 +0200 Subject: [PATCH] Fix circuits integration tests panic: "unwrap on None value" when EIP-4896 withdrawals==None (#1688) ### Description Integration Tests have been failing since introduction of https://github.com/privacy-scaling-explorations/zkevm-circuits/issues/1369, due to Option::Unwrap on None value, when eth_block.withdrawals==None. ### Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update ### Contents - zkevm-circuits/zkevm-circuits/src/witness/block.rs ### Rationale replace eth_block.withdrawals.clone().unwrap() with eth_block.withdrawals.clone().unwrap_or_default() ### How Has This Been Tested? https://github.com/privacy-scaling-explorations/zkevm-circuits/actions/runs/6968928576/job/18963801769