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

refactor: rename supportedMethods to methods #35

Merged
merged 1 commit into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/KeyringClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('KeyringClient', () => {
name: 'Account 1',
address: '0xE9A74AACd7df8112911ca93260fC5a046f8a64Ae',
options: {},
supportedMethods: [],
methods: [],
type: 'eip155:eoa',
},
];
Expand All @@ -48,7 +48,7 @@ describe('KeyringClient', () => {
name: 'Account 1',
address: '0xE9A74AACd7df8112911ca93260fC5a046f8a64Ae',
options: {},
supportedMethods: [],
methods: [],
type: 'eip155:eoa',
};

Expand All @@ -71,7 +71,7 @@ describe('KeyringClient', () => {
name: 'Account 1',
address: '0xE9A74AACd7df8112911ca93260fC5a046f8a64Ae',
options: {},
supportedMethods: [],
methods: [],
type: 'eip155:eoa',
};

Expand Down Expand Up @@ -114,7 +114,7 @@ describe('KeyringClient', () => {
name: 'Account 1',
address: '0xE9A74AACd7df8112911ca93260fC5a046f8a64Ae',
options: {},
supportedMethods: [],
methods: [],
type: 'eip155:eoa',
};

Expand Down
2 changes: 1 addition & 1 deletion src/KeyringSnapControllerClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('KeyringSnapControllerClient', () => {
name: 'Account 1',
address: '0xE9A74AACd7df8112911ca93260fC5a046f8a64Ae',
options: {},
supportedMethods: [],
methods: [],
type: 'eip155:eoa',
},
];
Expand Down
2 changes: 1 addition & 1 deletion src/KeyringSnapRpcClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('KeyringSnapRpcClient', () => {
name: 'Account 1',
address: '0xE9A74AACd7df8112911ca93260fC5a046f8a64Ae',
options: {},
supportedMethods: [],
methods: [],
type: 'eip155:eoa',
},
];
Expand Down
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const KeyringAccountStruct = object({
/**
* Account supported methods.
*/
supportedMethods: array(
methods: array(
enums([
'personal_sign',
'eth_sendTransaction',
Expand Down
4 changes: 2 additions & 2 deletions src/rpc-handler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ describe('keyringRpcDispatcher', () => {
name: 'test',
address: '0x0',
options: {},
supportedMethods: [],
methods: [],
type: 'eip155:eoa',
},
},
Expand All @@ -252,7 +252,7 @@ describe('keyringRpcDispatcher', () => {
name: 'test',
address: '0x0',
options: {},
supportedMethods: [],
methods: [],
type: 'eip155:eoa',
});
expect(result).toBe('UpdateAccount result');
Expand Down