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

feat(ethers-providers): expose pending tx_hash with a getter #968

Merged
merged 1 commit into from
Feb 26, 2022

Conversation

meetmangukiya
Copy link
Contributor

Motivation

ContractCall::send returns PendingTransactions, there is no way to access the tx hash since its a private field.

Solution

Adding a getter so the user can get a contract call's tx hash.

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

Copy link
Owner

@gakonst gakonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, FYI you can also get it by dereferencing the pending TX!

@gakonst gakonst merged commit 133c32d into gakonst:master Feb 26, 2022
@meetmangukiya
Copy link
Contributor Author

Interesting, didn't notice the DeRef impl

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.

2 participants