fix: deprecated signature

This commit is contained in:
royvardhan
2025-02-04 23:30:23 +05:30
parent 6557ede64b
commit 576f89d24c
3 changed files with 123 additions and 58 deletions

View File

@@ -7,9 +7,7 @@ use alloy::{
signers::{local::PrivateKeySigner, SignerSync},
transports::BoxTransport,
};
#[allow(deprecated)]
use alloy_primitives::Signature;
use alloy_primitives::B256;
use alloy_primitives::{PrimitiveSignature as Signature, B256};
use alloy_sol_types::{eip712_domain, sol, SolStruct, SolValue};
use chrono::Utc;
use num_bigint::BigUint;
@@ -117,7 +115,6 @@ impl Permit2 {
}
}
/// Creates permit single and signature
#[allow(deprecated)]
pub fn get_permit(
&self,
spender: &Bytes,