fix tests

This commit is contained in:
2018-04-04 12:49:41 +02:00
parent 6a5eb5a313
commit a418ddbe52
4 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ export default Service.extend({
} else {
debug('[kredits] Creating new instance from npm module class');
let providerUrl = localStorage.getItem('config:web3ProviderUrl') || config.web3ProviderUrl;
let networkId = config.contractMetadata.networkId;
let networkId = parseInt(config.contractMetadata.networkId);
web3Provider = new ethers.providers.JsonRpcProvider(providerUrl, {chainId: networkId});
}