From 1c7fa1490397098a424aa1245ef0318631f57ef9 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Tue, 17 Aug 2021 09:00:24 -0400 Subject: [PATCH] fix: log error when an RPC exception is raised when releasing an ens --- src/status/ens.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/status/ens.nim b/src/status/ens.nim index 13d271b0d2..0923f1975a 100644 --- a/src/status/ens.nim +++ b/src/status/ens.nim @@ -185,7 +185,7 @@ proc releaseEstimateGas*(username: string, address: string, success: var bool): if success: result = fromHex[int](response) except RpcException as e: - raise + error "Could not estimate gas for ens release", err=e.msg proc release*(username: string, address: string, gas, gasPrice, password: string, success: var bool): string = let @@ -199,7 +199,7 @@ proc release*(username: string, address: string, gas, gasPrice, password: strin if success: trackPendingTransaction(result, address, $ensUsernamesContract.address, PendingTransactionType.ReleaseENS, username) except RpcException as e: - raise + error "Could not estimate gas for ens release", err=e.msg proc getExpirationTime*(username: string, success: var bool): int = let