Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert transaction signing to async #387

Merged
merged 3 commits into from
Oct 18, 2020
Merged

Conversation

e00E
Copy link
Contributor

@e00E e00E commented Oct 16, 2020

Converting the manual Future implementation to async makes the code
simpler and no longer require Unpin.

part of #361

e00E and others added 2 commits October 16, 2020 10:34
Converting the manual Future implementation to async makes the code
simpler and no longer require Unpin.
Copy link
Owner

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

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

That's amazing 😍, thank you so much!

pub fn sign_transaction<K: signing::Key>(&self, tx: TransactionParameters, key: K) -> SignTransactionFuture<T, K> {
SignTransactionFuture::new(self, tx, key)
///
/// Transaction signing can perform RPC requests in order to fill missing
Copy link
Owner

Choose a reason for hiding this comment

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

❤️

@e00E
Copy link
Contributor Author

e00E commented Oct 16, 2020

Are you sure you want to bump version immediately? To be clear, this code does not yet have outside observable effect. It removes the Unpin requirement of this piece of code but we'll need to make similar changes in several places before we can remove the Unpin bound on Transport.

@tomusdrw
Copy link
Owner

Are you sure you want to bump version immediately?

Bumping the version, just so that I don't forget to do it later on. Different return types is a breaking change already, so I'd prefer to indicate that the git version is different than what's on crates.io. Totally fine with merging more changes before the actual release.

@e00E
Copy link
Contributor Author

e00E commented Oct 16, 2020

Makes sense 👍

@tomusdrw tomusdrw merged commit 720731f into tomusdrw:master Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants