Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

add pending tx type to wait for tx confirmations #11

Merged
merged 6 commits into from
Jun 15, 2020

Conversation

gakonst
Copy link
Owner

@gakonst gakonst commented Jun 15, 2020

Blocked on: seanmonstar/reqwest#949 fixed in 4ecd924. Would've been nice if there was a better way to do this w/o having to write out a full state machine.

Sending a transaction will yield a PendingTransaction which you can await. The future resolves to the Receipt. You can call the confirmations method on before await'ing, in order to resolve the future only after N confs

@gakonst gakonst changed the title WIP: add pending tx type WIP: add pending tx type to wait for tx confirmations Jun 15, 2020
@gakonst gakonst changed the title WIP: add pending tx type to wait for tx confirmations add pending tx type to wait for tx confirmations Jun 15, 2020
@gakonst gakonst merged commit 79b21b9 into master Jun 15, 2020
@gakonst gakonst deleted the gakonst/pending-txs branch June 15, 2020 12:40
meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this pull request Mar 21, 2022
* test: allow DS-Test-style failures with assertEq

* feat: expand tracing

* docs: update readme
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant