fix: log error when an RPC exception is raised when releasing an ens
This commit is contained in:
parent
efcbb023a6
commit
1c7fa14903
|
@ -185,7 +185,7 @@ proc releaseEstimateGas*(username: string, address: string, success: var bool):
|
||||||
if success:
|
if success:
|
||||||
result = fromHex[int](response)
|
result = fromHex[int](response)
|
||||||
except RpcException as e:
|
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 =
|
proc release*(username: string, address: string, gas, gasPrice, password: string, success: var bool): string =
|
||||||
let
|
let
|
||||||
|
@ -199,7 +199,7 @@ proc release*(username: string, address: string, gas, gasPrice, password: strin
|
||||||
if success:
|
if success:
|
||||||
trackPendingTransaction(result, address, $ensUsernamesContract.address, PendingTransactionType.ReleaseENS, username)
|
trackPendingTransaction(result, address, $ensUsernamesContract.address, PendingTransactionType.ReleaseENS, username)
|
||||||
except RpcException as e:
|
except RpcException as e:
|
||||||
raise
|
error "Could not estimate gas for ens release", err=e.msg
|
||||||
|
|
||||||
proc getExpirationTime*(username: string, success: var bool): int =
|
proc getExpirationTime*(username: string, success: var bool): int =
|
||||||
let
|
let
|
||||||
|
|
Loading…
Reference in New Issue