mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-01 17:27:53 +00:00
fix: remove invalid condition from sendTransaction
This commit is contained in:
parent
d1378597b6
commit
16ae26aa62
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user