Skip to content

Commit

Permalink
DigixGlobal#70 EthereumApi.send_raw_transaction fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bshevchenko committed Sep 10, 2019
1 parent e65ddcc commit b8125e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/watching_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def resend_transactions
end
end

unless data['blockNumber'].nil?
unless data['block_number'].nil?
Rails.logger.info "Destroying transactions from group #{tx.group_id}"
WatchingTransaction.find_by(group_id: tx.group_id).destroy
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ethereum_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_transaction_by_hash(txhash)
end

def send_raw_transaction(data)
unwrap_result(request_ethereum_server('eth_sendRawTransaction', [{:data => data}]))
unwrap_result(request_ethereum_server('eth_sendRawTransaction', [data]))
end

private
Expand Down

0 comments on commit b8125e0

Please sign in to comment.