Skip to content

Commit

Permalink
fix: pass options to module address getter
Browse files Browse the repository at this point in the history
This fixes a bug that caused archived modules to be fetched even when `unarchived` was passed as
true

close #108
  • Loading branch information
monitz87 committed Nov 4, 2019
1 parent c53e7db commit 1ffa06a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@ yarn-error.log
npm-package/
.idea/
coverage/
test.ts
2 changes: 1 addition & 1 deletion src/PolymathBase.ts
Expand Up @@ -275,7 +275,7 @@ export class PolymathBase extends PolymathAPI {
): Promise<any[]> => {
const { moduleFactory } = this;

const moduleAddresses = await this.getModuleAddressesByName({ moduleName, symbol });
const moduleAddresses = await this.getModuleAddressesByName({ moduleName, symbol }, opts);

const { getModuleInstance } = moduleFactory;

Expand Down

0 comments on commit 1ffa06a

Please sign in to comment.