Skip to content

Commit

Permalink
Remove allow unwrap for zk wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
IAvecilla committed Sep 19, 2024
1 parent adb9baa commit 7fe5901
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/zk_wallet.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// FIXME: Remove this after finishing the implementation.
#![allow(clippy::unwrap_used)]

use ethers::{
abi::{Address, Hash},
middleware::SignerMiddleware,
Expand Down Expand Up @@ -531,7 +528,7 @@ where
let gas_price = self.l2_provider().get_gas_price().await?;
request = request
.from(self.l2_address())
.chain_id(self.l2_provider().get_chainid().await.unwrap())
.chain_id(self.l2_provider().get_chainid().await?)
.nonce(
self.l2_provider()
.get_transaction_count(self.l2_address(), None)
Expand Down

0 comments on commit 7fe5901

Please sign in to comment.