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

chore(deps): bump @metamask/keyring-api to v0.2.1#70

Closed
gantunesr wants to merge 6 commits intomainfrom
chore/keyring-api-0.2.1
Closed

chore(deps): bump @metamask/keyring-api to v0.2.1#70
gantunesr wants to merge 6 commits intomainfrom
chore/keyring-api-0.2.1

Conversation

@gantunesr
Copy link
Member

@gantunesr gantunesr commented Sep 4, 2023

@gantunesr gantunesr marked this pull request as draft September 4, 2023 19:28
@socket-security
Copy link

Updated and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@metamask/keyring-api 0.1.3...0.2.1 None +0/-88 153 kB metamaskbot

🚮 Removed packages: @metamask/snaps-controllers@0.35.2-flask.1

Comment on lines +43 to +44
// @ts-expect-error Check https://github.com/ianstormtaylor/superstruct/issues/983
params: { account: account as unknown as InternalAccount },
Copy link
Member Author

Choose a reason for hiding this comment

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

At the moment we're suppressing this error until it's fixed in @metamask/utils.

Type 'undefined' is not assignable to type 'Json'.

Copy link
Contributor

Choose a reason for hiding this comment

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

@gantunesr It should be fixed in @metamask/utils in 8.1.0: #69

Comment on lines +2 to +6
import {
EthMethod,
EthAccountType,
InternalAccount,
} from '@metamask/keyring-api';
Copy link
Member Author

Choose a reason for hiding this comment

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

The tests regarding serialize and deserialize are not working currently because of the data type change.

Copy link
Member Author

Choose a reason for hiding this comment

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

@danroc @montelaidev regarding our conversation earlier today, when should the metadata attribute be added to the accounts object to comply with the InternalAccount? And what's the source of data for the fields snap and name?

Copy link
Contributor

Choose a reason for hiding this comment

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

snap metadata is filled by the SnapKeyring (this repo), the name should be filled by the AccountsController.

@gantunesr gantunesr added the team-accounts This should be handled by the Accounts Team label Sep 4, 2023
@danroc
Copy link
Contributor

danroc commented Sep 5, 2023

Merged into #75.

@danroc danroc closed this Sep 5, 2023
@danroc danroc deleted the chore/keyring-api-0.2.1 branch September 7, 2023 12:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

team-accounts This should be handled by the Accounts Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants