Skip to content

Commit

Permalink
Refactor some more code
Browse files Browse the repository at this point in the history
  • Loading branch information
david0xd committed Oct 7, 2024
1 parent cd55fd7 commit 94f9b38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 1 addition & 5 deletions packages/snaps-jest/src/helpers.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -735,11 +735,7 @@ describe('installSnap', () => {
it('sends a keyring request and returns the result', async () => {
jest.spyOn(console, 'log').mockImplementation();
const mockRequestObject = {
params: {
options: {
privateKey: 'foo bar',
},
},
params: {},
id: 1,
method: 'keyring_listAccounts',
jsonrpc: '2.0',
Expand Down
4 changes: 1 addition & 3 deletions packages/snaps-simulation/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,7 @@ export type Snap = {
* @param keyringRequest - Keyring request options.
* @returns The response.
*/
onKeyringRequest(
keyringRequest?: Partial<KeyringOptions>,
): Promise<SnapResponseWithInterface>;
onKeyringRequest(keyringRequest?: Partial<KeyringOptions>): SnapRequest;

/**
* Mock a JSON-RPC request. This will cause the snap to respond with the
Expand Down

0 comments on commit 94f9b38

Please sign in to comment.