fix: log error when an RPC exception is raised when releasing an ens

This commit is contained in:
Richard Ramos 2021-08-17 09:00:24 -04:00 committed by Iuri Matias
parent efcbb023a6
commit 1c7fa14903
1 changed files with 2 additions and 2 deletions

View File

@ -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