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

Adds filter options to selectContacts and selectContact in SDK #491

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sourabhmodi20051
Copy link

Issue #453
Updated contracts for selectContacts and selectContact

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

Copy link
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
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