mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add network client tests for methods not supported by Infura (#17347)
Any methods in the Ethereum JSON-RPC spec are now included in our network client tests. These tests were skipped previously because they are not supported by Infura. Closes #16938
This commit is contained in:
parent
024ff1e384
commit
d2f50d47fa
@ -115,21 +115,31 @@ export function testsForProviderType(providerType) {
|
||||
const notHandledByMiddleware = [
|
||||
{ name: 'eth_accounts', numberOfParameters: 0 },
|
||||
{ name: 'eth_coinbase', numberOfParameters: 0 },
|
||||
{ name: 'eth_createAccessList', numberOfParameters: 2 },
|
||||
{ name: 'eth_feeHistory', numberOfParameters: 3 },
|
||||
{ name: 'eth_getFilterChanges', numberOfParameters: 1 },
|
||||
{ name: 'eth_getLogs', numberOfParameters: 1 },
|
||||
{ name: 'eth_getProof', numberOfParameters: 3 },
|
||||
{ name: 'eth_getWork', numberOfParameters: 0 },
|
||||
{ name: 'eth_hashrate', numberOfParameters: 0 },
|
||||
{ name: 'eth_maxPriorityFeePerGas', numberOfParameters: 0 },
|
||||
{ name: 'eth_mining', numberOfParameters: 0 },
|
||||
{ name: 'eth_newBlockFilter', numberOfParameters: 0 },
|
||||
{ name: 'eth_newFilter', numberOfParameters: 1 },
|
||||
{ name: 'eth_newPendingTransactionFilter', numberOfParameters: 0 },
|
||||
{ name: 'eth_sendRawTransaction', numberOfParameters: 1 },
|
||||
{ name: 'eth_signTransaction', numberOfParameters: 1 },
|
||||
{ name: 'eth_sendTransaction', numberOfParameters: 1 },
|
||||
{ name: 'eth_sign', numberOfParameters: 2 },
|
||||
{ name: 'eth_submitHashRate', numberOfParameters: 2 },
|
||||
{ name: 'eth_submitWork', numberOfParameters: 3 },
|
||||
{ name: 'eth_syncing', numberOfParameters: 0 },
|
||||
{ name: 'eth_uninstallFilter', numberOfParameters: 1 },
|
||||
{ name: 'debug_getRawHeader', numberOfParameters: 1 },
|
||||
{ name: 'debug_getRawBlock', numberOfParameters: 1 },
|
||||
{ name: 'debug_getRawTransaction', numberOfParameters: 1 },
|
||||
{ name: 'debug_getRawReceipts', numberOfParameters: 1 },
|
||||
{ name: 'debug_getBadBlocks', numberOfParameters: 0 },
|
||||
];
|
||||
notHandledByMiddleware.forEach(({ name, numberOfParameters }) => {
|
||||
describe(`method name: ${name}`, () => {
|
||||
|
Loading…
Reference in New Issue
Block a user