From bb5991a893bbee89a2886b86f3a5a761bb23812e Mon Sep 17 00:00:00 2001 From: Tal Kol Date: Sun, 26 Jul 2020 13:11:36 +0300 Subject: [PATCH] Minor error formatting --- src/write/ethereum-helpers.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/write/ethereum-helpers.ts b/src/write/ethereum-helpers.ts index 59606ed..753bd77 100644 --- a/src/write/ethereum-helpers.ts +++ b/src/write/ethereum-helpers.ts @@ -63,10 +63,12 @@ export async function signAndSendTransaction( }; let gasLimit = toNumber(await state.web3.eth.estimateGas(txObject)); - if (gasLimit <= 0) throw new Error(`Cannot estimate gas for tx with data ${encodedAbi}`); + if (gasLimit <= 0) { + throw new Error(`Cannot estimate gas for tx with data ${encodedAbi}.`); + } gasLimit += GAS_LIMIT_ESTIMATE_EXTRA; if (gasLimit > GAS_LIMIT_HARD_LIMIT) { - throw new Error(`Gas limit estimate ${gasLimit} over hard limit ${GAS_LIMIT_HARD_LIMIT}`); + throw new Error(`Gas limit estimate ${gasLimit} over hard limit ${GAS_LIMIT_HARD_LIMIT}.`); } txObject.gas = gasLimit;