Add getNetVersion to ignored methods for web3 (#1491)
* Add getNetVersion to ignored methods for web3 * update mycrypto-shepherd version
This commit is contained in:
parent
7b7e7eaae2
commit
43ef6e95d4
|
@ -40,6 +40,7 @@ export const makeProviderConfig = (options: DeepPartial<IProviderConfig> = {}):
|
|||
}
|
||||
};
|
||||
};
|
||||
|
||||
let shepherdProvider: INode;
|
||||
shepherd
|
||||
.init()
|
||||
|
@ -102,7 +103,12 @@ shepherd.useProvider('rpc', 'ella', regEllaConf, 'https://jsonrpc.ellaism.org');
|
|||
*/
|
||||
const web3EthConf = makeProviderConfig({
|
||||
network: makeWeb3Network('ETH'),
|
||||
supportedMethods: { sendRawTx: false, sendTransaction: false, signMessage: false }
|
||||
supportedMethods: {
|
||||
sendRawTx: false,
|
||||
sendTransaction: false,
|
||||
signMessage: false,
|
||||
getNetVersion: false
|
||||
}
|
||||
});
|
||||
shepherd.useProvider('rpc', 'web3_eth_mycrypto', web3EthConf, 'https://api.mycryptoapi.com/eth');
|
||||
shepherd.useProvider('etherscan', 'web3_eth_ethscan', web3EthConf, 'https://api.etherscan.io/api');
|
||||
|
@ -121,7 +127,12 @@ shepherd.useProvider(
|
|||
|
||||
const web3RopConf = makeProviderConfig({
|
||||
network: makeWeb3Network('Ropsten'),
|
||||
supportedMethods: { sendRawTx: false, sendTransaction: false, signMessage: false }
|
||||
supportedMethods: {
|
||||
sendRawTx: false,
|
||||
sendTransaction: false,
|
||||
signMessage: false,
|
||||
getNetVersion: false
|
||||
}
|
||||
});
|
||||
shepherd.useProvider(
|
||||
'infura',
|
||||
|
@ -132,7 +143,12 @@ shepherd.useProvider(
|
|||
|
||||
const web3KovConf = makeProviderConfig({
|
||||
network: makeWeb3Network('Kovan'),
|
||||
supportedMethods: { sendRawTx: false, sendTransaction: false, signMessage: false }
|
||||
supportedMethods: {
|
||||
sendRawTx: false,
|
||||
sendTransaction: false,
|
||||
signMessage: false,
|
||||
getNetVersion: false
|
||||
}
|
||||
});
|
||||
shepherd.useProvider(
|
||||
'etherscan',
|
||||
|
@ -143,7 +159,12 @@ shepherd.useProvider(
|
|||
|
||||
const web3RinConf = makeProviderConfig({
|
||||
network: makeWeb3Network('Rinkeby'),
|
||||
supportedMethods: { sendRawTx: false, sendTransaction: false, signMessage: false }
|
||||
supportedMethods: {
|
||||
sendRawTx: false,
|
||||
sendTransaction: false,
|
||||
signMessage: false,
|
||||
getNetVersion: false
|
||||
}
|
||||
});
|
||||
shepherd.useProvider(
|
||||
'infura',
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
"ledgerco": "1.2.1",
|
||||
"lodash": "4.17.5",
|
||||
"moment": "2.22.0",
|
||||
"mycrypto-shepherd": "1.0.1",
|
||||
"mycrypto-shepherd": "1.0.2",
|
||||
"normalizr": "3.2.4",
|
||||
"qrcode": "1.2.0",
|
||||
"qrcode.react": "0.8.0",
|
||||
|
|
Loading…
Reference in New Issue