Skip to content

Commit

Permalink
fully remove eth_sign support
Browse files Browse the repository at this point in the history
  • Loading branch information
adonesky1 committed Jun 25, 2024
1 parent 7add8ac commit 4ded566
Show file tree
Hide file tree
Showing 19 changed files with 2 additions and 481 deletions.
39 changes: 0 additions & 39 deletions app/_locales/en/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion app/scripts/controllers/permissions/specifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ export const unrestrictedMethods = Object.freeze([
'eth_requestAccounts',
'eth_sendRawTransaction',
'eth_sendTransaction',
'eth_sign',
'eth_signTypedData',
'eth_signTypedData_v1',
'eth_signTypedData_v3',
Expand Down
4 changes: 1 addition & 3 deletions app/scripts/controllers/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ export default class PreferencesController {
useNonceField: false,
usePhishDetect: true,
dismissSeedBackUpReminder: false,
disabledRpcMethodPreferences: {
eth_sign: false,
},
disabledRpcMethodPreferences: {},
useMultiAccountBalanceChecker: true,
hasDismissedOpenSeaToBlockaidBanner: false,
useSafeChainsListValidation: true,
Expand Down
1 change: 0 additions & 1 deletion app/scripts/lib/backup.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ describe('Backup', function () {
},
methods: [
'personal_sign',
'eth_sign',
'eth_signTransaction',
'eth_signTypedData_v1',
'eth_signTypedData_v3',
Expand Down
2 changes: 0 additions & 2 deletions app/scripts/lib/snap-keyring/metrics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ describe('getSnapAndHardwareInfoForMetrics', () => {
options: {},
methods: [
'personal_sign',
'eth_sign',
'eth_signTransaction',
'eth_signTypedData_v1',
'eth_signTypedData_v3',
Expand Down Expand Up @@ -97,7 +96,6 @@ describe('getSnapAndHardwareInfoForMetrics', () => {
options: {},
methods: [
'personal_sign',
'eth_sign',
'eth_signTransaction',
'eth_signTypedData_v1',
'eth_signTypedData_v3',
Expand Down
4 changes: 1 addition & 3 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1849,9 +1849,7 @@ export default class MetamaskController extends EventEmitter {
`${this.loggingController.name}:add`,
],
}),
isEthSignEnabled: () =>
this.preferencesController.store.getState()
?.disabledRpcMethodPreferences?.eth_sign,
isEthSignEnabled: false,
getAllState: this.getState.bind(this),
getCurrentChainId: () =>
this.networkController.state.providerConfig.chainId,
Expand Down
1 change: 0 additions & 1 deletion shared/constants/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export const MESSAGE_TYPE = {
ETH_REQUEST_ACCOUNTS: 'eth_requestAccounts',
ETH_SEND_TRANSACTION: 'eth_sendTransaction',
ETH_SEND_RAW_TRANSACTION: 'eth_sendRawTransaction',
ETH_SIGN: 'eth_sign',
ETH_SIGN_TRANSACTION: 'eth_signTransaction',
ETH_SIGN_TYPED_DATA: 'eth_signTypedData',
ETH_SIGN_TYPED_DATA_V1: 'eth_signTypedData_v1',
Expand Down
1 change: 0 additions & 1 deletion shared/constants/methods-tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export const methodsWithConfirmation = [
'wallet_requestPermissions',
'wallet_requestSnaps',
'eth_decrypt',
'eth_sign',
'eth_requestAccounts',
'eth_getEncryptionPublicKey',
];
1 change: 0 additions & 1 deletion shared/constants/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const IN_PROGRESS_TRANSACTION_STATUSES = [
];

export const SIGNING_METHODS = Object.freeze([
'eth_sign',
'eth_signTypedData',
'eth_signTypedData_v1',
'eth_signTypedData_v3',
Expand Down

This file was deleted.

Loading

0 comments on commit 4ded566

Please sign in to comment.