fix: remove invalid condition from sendTransaction

This commit is contained in:
Richard Ramos 2020-12-09 16:36:46 -04:00 committed by RichΛrd
parent d1378597b6
commit 16ae26aa62
1 changed files with 0 additions and 2 deletions

View File

@ -16,8 +16,6 @@ proc estimateGas*(tx: EthSend): RpcResponse =
trace "Gas estimated succesfully", estimate=result.result
proc sendTransaction*(tx: EthSend, password: string): RpcResponse =
if not tx.hasKey("to"):
tx["to"] = ""
let responseStr = core.sendTransaction($(%tx), password)
result = Json.decode(responseStr, RpcResponse)
if not result.error.isNil: