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

feat: add with_inputs and with_outputs to contract CallHandler #1607

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

hal3e
Copy link
Contributor

@hal3e hal3e commented Feb 24, 2025

Summary

This PR adds the possibility for the user to prepend specific inputs and outputs to CallHandlers. Use the with_inputs and with_outputs methods. If the custom inputs have coins that need to be signed, use the add_signer method.

Breaking Changes

  • ContractCall new fields: inputs and outputs
  • TransactionBuilders changed signature of unresolved_signatures to Vec<Arc<dyn Signer + Send + Sync>>
  • TransactionBuilders removed clone_without_signers method. Use clone instead

Checklist

  • All changes are covered by tests (or not applicable)
  • All changes are documented (or not applicable)
  • I reviewed the entire PR myself (preferably, on GH UI)
  • I described all Breaking Changes (or there's none)

@hal3e hal3e self-assigned this Feb 24, 2025
@hal3e hal3e marked this pull request as ready for review February 26, 2025 12:20
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