Skip to content
This repository was archived by the owner on Jul 29, 2020. It is now read-only.

Adds filter options to selectContacts and selectContact in SDK#491

Open
sourabhmodi20051 wants to merge 3 commits intoMainframe-Archive:masterfrom
sourabhmodi20051:issue/453
Open

Adds filter options to selectContacts and selectContact in SDK#491
sourabhmodi20051 wants to merge 3 commits intoMainframe-Archive:masterfrom
sourabhmodi20051:issue/453

Conversation

@sourabhmodi20051
Copy link
Copy Markdown

Issue #453
Updated contracts for selectContacts and selectContact

selectContacts(options?: { withWallet?: boolean }): Promise<Array<Contact>>
selectContact(options?: { withWallet?: boolean }): Promise<?Contact>

Copy link
Copy Markdown
Contributor

@PaulLeCam PaulLeCam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR!

Following the refactoring the SDK has been extracted to https://github.com/MainframeHQ/mainframe-sdk so would you mind opening a PR there as well?
Thanks!

async (ctx: AppContext, params: { multi?: boolean }) => {
async (
ctx: AppContext,
params: { multi?: boolean, options?: { withWallet?: boolean } },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than adding options.withWallet, I think withWallet could be set in the params object directly, such as params: { multi?: boolean, withWallet?: boolean }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants