q9f / eth.rb

a straightforward library to build, sign, and broadcast ethereum transactions anywhere you can run ruby.
https://q9f.github.io/eth.rb
Apache License 2.0
196 stars 85 forks source link

eth/client: always return hash even if transaction didn't succeed #284

Closed q9f closed 1 month ago

q9f commented 1 month ago

fix #223

sometimes the execution does not succeed in which case we don't return the hash

now, we return the hash and a status: [hash, status] which might break some scripts.

before: hash = transact_and_wait()

after: hash, status = transact_and_wait()