File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
1212} from "../../abi/v300.js" ;
1313import type { CreditAccountData } from "../base/index.js" ;
1414import { SDKConstruct } from "../base/index.js" ;
15+ import { chains } from "../chain/chains.js" ;
1516import {
1617 ADDRESS_0X0 ,
1718 AP_CREDIT_ACCOUNT_COMPRESSOR ,
@@ -75,9 +76,14 @@ export interface CreditAccountServiceOptions {
7576 batchSize ?: number ;
7677}
7778
78- export function getWithdrawalCompressorAddress ( _chainId : number ) {
79- // TODO: HARDCODED
80- return "0x36F3d0Bb73CBC2E94fE24dF0f26a689409cF9023" as const ;
79+ // TODO: HARDCODED
80+ const COMPRESSORS = {
81+ [ chains . Mainnet . id ] : "0xfB79b6713fe214B8748ED7b0db1f93E4f1aC9d29" ,
82+ [ chains . Monad . id ] : "0x36F3d0Bb73CBC2E94fE24dF0f26a689409cF9023" ,
83+ } ;
84+
85+ export function getWithdrawalCompressorAddress ( chainId : number ) {
86+ return COMPRESSORS [ chainId ] ;
8187}
8288
8389export abstract class AbstractCreditAccountService extends SDKConstruct {
You can’t perform that action at this time.
0 commit comments