Fixed trying to log invalid field

This commit is contained in:
Jędrzej Stuczyński
2021-06-24 14:51:44 +01:00
parent b56bb7f226
commit 23951acdec
+1 -1
View File
@@ -405,7 +405,7 @@ export default class ValidatorClient {
if (this.client instanceof NetClient) {
const bond = await this.minimumGatewayBond()
const result = await this.client.executeContract(this.client.clientAddress, this.contractAddress, {bond_gateway: {gateway: gateway}}, "adding gateway", [bond]).catch((err) => this.handleRequestFailure(err));
console.log(`account ${this.client.clientAddress} added gateway with ${gateway.mix_host}`);
console.log(`account ${this.client.clientAddress} added gateway with ${gateway.host}`);
return result;
} else {
throw new Error("Tried to bond gateway with a query client")