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

sign_transaction_sync #388

Merged
merged 1 commit into from
Aug 18, 2021
Merged

sign_transaction_sync #388

merged 1 commit into from
Aug 18, 2021

Conversation

auterium
Copy link
Contributor

Motivation

Wallet struct implements the Signer trait to expose the sign_transaction() function which doesn't do any async calls, but it's still exposed through the async interface. This makes it complex to use in environments where there's no async runtime.

Solution

Created a new public, sync function and moved the code from the async funtion to this one. Wasn't sure what name to use on the new function, but open to suggestions

Copy link
Collaborator

@prestwich prestwich left a comment

Choose a reason for hiding this comment

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

seems good to me

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

@gakonst gakonst merged commit 6218820 into gakonst:master Aug 18, 2021
meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this pull request Mar 21, 2022
* Expanded match interface into options for filtering by test name, contract name, and their inverse

* Added forge::TestFilter impl for Filter && replaced Regex with Filter

* Added TestFilter trait

* Replaced Regex with TestFilter

* Replaced Regex with TestFilter

* Cleaned up warnings

* Formatting

* Add conflicts for old match flag and new expaded match flags

* Added TestFilter impl to test_helpers

* Replaced Regex in tests with impl TestFilter
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.

3 participants