Skip to content

Commit b343437

Browse files
authored
feat: adds new webauthn factory address (#1780)
* fix: adds new webauthn factory address * fix: creates separate function
1 parent 1373ff1 commit b343437

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

account-kit/smart-contracts/src/ma-v2/account/modularAccountV2.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
import { accountFactoryAbi } from "../abis/accountFactoryAbi.js";
2222
import {
2323
getDefaultMAV2FactoryAddress,
24+
getDefaultWebAuthnMAV2FactoryAddress,
2425
getDefaultSMAV2BytecodeAddress,
2526
} from "../utils.js";
2627
import {
@@ -169,7 +170,7 @@ export async function createModularAccountV2<
169170
const { x, y } = parsePublicKey(publicKey);
170171
const {
171172
salt = 0n,
172-
factoryAddress = getDefaultMAV2FactoryAddress(chain),
173+
factoryAddress = getDefaultWebAuthnMAV2FactoryAddress(),
173174
initCode,
174175
} = config;
175176

account-kit/smart-contracts/src/ma-v2/utils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ export const pack1271Signature = ({
7272
]);
7373
};
7474

75+
export const getDefaultWebAuthnMAV2FactoryAddress = (): Address => {
76+
return "0x9c607854b60fb6AFDB33daC5a1676AC06048bE5f";
77+
};
78+
7579
export const getDefaultMAV2FactoryAddress = (chain: Chain): Address => {
7680
switch (chain.id) {
7781
// TODO: case mekong.id:

0 commit comments

Comments
 (0)