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

Commit

Permalink
refactor: rename supportedMethods to methods (#35)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This commit renames a field of the KeyringAccount
class, making it incompatible with previous version.
  • Loading branch information
danroc authored Jul 11, 2023
1 parent 8c43e31 commit f8551a1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
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

0 comments on commit f8551a1

Please sign in to comment.