tomusdrw / rust-web3

Ethereum JSON-RPC multi-transport client. Rust implementation of web3 library. ENS address: rust-web3.eth
MIT License
1.45k stars 465 forks source link

Getting txHash along with the contract logs #650

Open r0wdy1 opened 2 years ago

r0wdy1 commented 2 years ago

As of now (0.18.0) there are some flaws with Contract.events method :

I tried my best ( please be patient, this is my first PR) to address aforementioned issues, may be not in a best way. I'm not really excited about making a new type for events with meta, the current idea with tuples, that matches event signature, seems really elegant, but unfortunately the txHash is actually necessary is lot's of cases