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

Make ContractCall IntoFuture implement Send #2083

Merged

Conversation

gmalette
Copy link
Contributor

Motivation

Prior to this PR, it's not possible to move a ContractCall using Send via its IntoFuture implementation.

This means that, using Tokio, to spawn a non-local task, one must currently use contract.the_method_to_call().call(), instead of contract.the_method_to_call().

Solution

This PR adds the Send bound to the IntoFuture implementation of ContractCall.

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog
  • Breaking changes

@gmalette gmalette force-pushed the gm/add-send-to-contractcall-intofuture branch from 381fcaf to 91247b1 Compare January 27, 2023 19:12
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.

nice work boss - dont forget to cargo +nightly fmt!

@gakonst gakonst merged commit 83b12a8 into gakonst:master Jan 27, 2023
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