code style. use interpolation syntax

This commit is contained in:
2018-04-15 18:02:52 +02:00
parent e1f19a1832
commit 7e6c6a037d
+1 -1
View File
@@ -92,7 +92,7 @@ export default class Kredits {
let contractName = capitalize(name);
let address = this.addresses[contractName];
if (!address || !abis[contractName]) {
throw new Error('Address or ABI not found for ' + contractName);
throw new Error(`Address or ABI not found for ${contractName}`);
}
let contract = new ethers.Contract(address, abis[contractName], this.signer);
this.contracts[name] = new contracts[contractName](contract);