rust-web3
rust-web3 copied to clipboard
send_transaction_with_confirmation is broken
why is it broken?
eth_getTransactionReceipt returns receipt with fields block_hash and block_number set to null for transactions that are a part of pending block.
related issue to parity-bridge:
- https://github.com/paritytech/parity-bridge/issues/191
- https://github.com/paritytech/parity-bridge/issues/196
fix for TransactionReceipt structure:
- https://github.com/tomusdrw/rust-web3/pull/164
new implementation of send_transaction_with_confirmation, for now in parity-bridge:
- https://github.com/paritytech/parity-bridge/pull/197
tests for new implementation: https://github.com/paritytech/parity-bridge/blob/block-number-stream/bridge/src/send_tx_with_receipt.rs#L249