feat: Add clone to EVMTychoEncoder

--- don't change below this line ---
ENG-4088 Took 4 minutes

Took 8 seconds

Took 48 seconds
This commit is contained in:
Diana Carvalho
2025-02-06 11:49:11 +00:00
parent 4680a4be24
commit b333d60d69
6 changed files with 32 additions and 2 deletions

View File

@@ -25,10 +25,11 @@ use crate::encoding::{
/// Struct for managing Permit2 operations, including encoding approvals and fetching allowance
/// data.
#[derive(Clone)]
pub struct Permit2 {
address: Address,
client: Arc<RootProvider<BoxTransport>>,
runtime: Runtime,
runtime: Arc<Runtime>,
signer: PrivateKeySigner,
chain_id: ChainId,
}
@@ -73,7 +74,7 @@ impl Permit2 {
address: Address::from_str("0x000000000022D473030F116dDEE9F6B43aC78BA3")
.map_err(|_| EncodingError::FatalError("Permit2 address not valid".to_string()))?,
client,
runtime,
runtime: Arc::new(runtime),
signer,
chain_id: chain.id,
})