-
Notifications
You must be signed in to change notification settings - Fork 61
Conversation
@@ -70,6 +70,16 @@ export async function exportSeed(this: MetamaskPolkadotSnap): Promise<string> { | |||
return (await sendSnapMethod({ method: 'exportSeed' }, this.snapId)) as string; | |||
} | |||
|
|||
export async function exportAccount( | |||
this: MetamaskPolkadotSnap, | |||
jsonPassphrase?: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove jsonPassphrase
there is no usage of it in snap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but like reviewing exportAccount.test.ts seems like there is no point of using it
If the extension uses a password field that is not used anywhere (bad U, itX) should not affect our API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we wouldn't allow this option, we lose nothing extending the already existing
KeyringPair.toJson(passphrase?: string)
method.
The merge-base changed after approval.
🤖 I have created a release *beep* *boop* --- <details><summary>metamask-polkadot-adapter: 0.7.0</summary> ## [0.7.0](metamask-polkadot-adapter-v0.6.0...metamask-polkadot-adapter-v0.7.0) (2024-06-18) ### Features * export account json rpc ([#234](#234)) ([0212428](0212428)) </details> <details><summary>metamask-polkadot-types: 0.8.0</summary> ## [0.8.0](metamask-polkadot-types-v0.7.0...metamask-polkadot-types-v0.8.0) (2024-06-18) ### Features * export account json rpc ([#234](#234)) ([0212428](0212428)) </details> <details><summary>polkadot-snap: 0.10.0</summary> ## [0.10.0](polkadot-snap-v0.9.0...polkadot-snap-v0.10.0) (2024-06-18) ### Features * export account json rpc ([#234](#234)) ([0212428](0212428)) ### Bug Fixes * exportSeed coin type fix ([#233](#233)) ([7bef7c2](7bef7c2)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
contains changes from #233
new rpc returns stringified json of keyring pair
example implements file saver and json passphrase encoding field