Skip to content

Commit

Permalink
Add getModulesPaginated
Browse files Browse the repository at this point in the history
  • Loading branch information
yagopv committed Apr 22, 2024
1 parent a0a04ff commit ef05dd7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/protocol-kit/src/managers/moduleManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,17 @@ class ModuleManager {
return [...modules]
}

//TODO: Implement getModulesPaginated in the new code
async getModulesPaginated(start: string, pageSize: number): Promise<string[]> {
if (!this.#safeContract) {
throw new Error('Safe is not deployed')
}
return this.#safeContract.getModulesPaginated(start, pageSize)
console.log('getModulesPaginated', start, pageSize)
return []
// if (!this.#safeContract) {
// throw new Error('Safe is not deployed')
// }

// const [modules] = await this.#safeContract.getModulesPaginated(start, pageSize)

// return [...modules]
}

async isModuleEnabled(moduleAddress: string): Promise<boolean> {
Expand Down

0 comments on commit ef05dd7

Please sign in to comment.