Skip to content

Commit 2e1424a

Browse files
authored
feat: update to latest 4337 contracts (#202)
* feat: update to latest 4337 contracts * chore: update contract abis
1 parent 70c2ff4 commit 2e1424a

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

.github/workflows/ci-rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ on:
66
push:
77
paths:
88
- "packages/contracts/**"
9+
- "packages/erc4337-contracts/**"
910
- "packages/sdk-platforms/rust/**"
1011
- ".github/workflows/ci-rust.yml"
1112
pull_request:
1213
paths:
1314
- "packages/contracts/**"
15+
- "packages/erc4337-contracts/**"
1416
- "packages/sdk-platforms/rust/**"
1517
- ".github/workflows/ci-rust.yml"
1618

packages/sdk-platforms/rust/zksync-sso-erc4337/crates/zksync-sso-erc4337-core/src/erc4337/account/erc7579/module_installed.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::erc4337::account::modular_smart_account::IMSA;
1+
use crate::erc4337::account::erc7579::IERC7579Account;
22
use alloy::{
33
primitives::{Address, Bytes, U256},
44
providers::Provider,
@@ -10,7 +10,7 @@ pub async fn is_module_installed<P: Provider + Send + Sync + Clone>(
1010
account: Address,
1111
provider: P,
1212
) -> eyre::Result<bool> {
13-
let account = IMSA::new(account, provider.clone());
13+
let account = IERC7579Account::new(account, provider.clone());
1414
let module_type_id = U256::from(1);
1515
let is_installed = account
1616
.isModuleInstalled(module_type_id, module, Bytes::default())

packages/sdk-platforms/rust/zksync-sso-erc4337/crates/zksync-sso-erc4337-core/src/erc4337/account/modular_smart_account.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ sol!(
1919
#[derive(Debug, Default)]
2020
#[allow(missing_docs)]
2121
#[sol(rpc)]
22-
IMSA,
23-
"../../../../../../packages/erc4337-contracts/out/IMSA.sol/IMSA.json"
22+
ModularSmartAccount,
23+
"../../../../../../packages/erc4337-contracts/out/ModularSmartAccount.sol/ModularSmartAccount.json"
2424
);
2525

2626
sol!(

packages/sdk-platforms/rust/zksync-sso-erc4337/crates/zksync-sso-erc4337-core/src/erc4337/account/modular_smart_account/deploy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::erc4337::{
22
account::modular_smart_account::{
3-
IMSA::initializeAccountCall,
43
MSAFactory::{self, deployAccountCall},
4+
ModularSmartAccount::initializeAccountCall,
55
add_passkey::PasskeyPayload,
66
},
77
utils::check_deployed::{Contract, check_contract_deployed},

0 commit comments

Comments
 (0)