Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

refactor: make exportAccount, listRequests and getRequest optional #73

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

danroc
Copy link
Contributor

@danroc danroc commented Aug 23, 2023

The async transaction flow shouldn't require snaps to implement the listRequests and getRequest methods, so we are making them optional.

Also, the exportAccount may not be supported by all snaps, so it doesn't make sense to force its implementation.

We decided to keep the CRUD account management methods mandatory, since they are (or will be) directly called by MetaMask.

The async transaction flow shouldn't require snaps to implement the
`listRequests` and `getRequest` methods, so we are making them optional.

Also, the `exportAccount` may not be supported by all snaps, so it
doesn't make sense to force it's implementation.

We decided to keep the CRUD account management methods mandatory, since
the are (or will be) directly called by MetaMask.
@danroc danroc force-pushed the feature/make-some-methods-optional branch from a606f4e to 9dac9d7 Compare August 24, 2023 07:57
@danroc danroc requested review from montelaidev, gantunesr and a team and removed request for gantunesr and montelaidev August 24, 2023 20:55
Copy link
Member

@gantunesr gantunesr left a comment

Choose a reason for hiding this comment

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

LGTM

@danroc danroc merged commit f54a39c into main Aug 24, 2023
16 checks passed
@danroc danroc deleted the feature/make-some-methods-optional branch August 24, 2023 22:39
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