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 call deployer #554

Merged
merged 3 commits into from
Nov 4, 2021
Merged

Feat/add call deployer #554

merged 3 commits into from
Nov 4, 2021

Conversation

frjnn
Copy link
Contributor

@frjnn frjnn commented Nov 3, 2021

Motivation

As it can be useful, for plentiful reasons, to perform one or several dry test runs of a contract's deployment, I hereby propose an implementation of .call() for the Deployer struct.

Solution

The implementation is straightforward, as it consist in invoking the client's.call() method from the Middleware trait to simulate the deployment. Such doing leaves plenty of room to handle reverts in a more structured way in the future.

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 - thank you

@frjnn
Copy link
Contributor Author

frjnn commented Nov 4, 2021

Looks like something's wrong with this test, I don't understand what's causing it, seems unrelated to me.

@gakonst gakonst merged commit bd3a704 into gakonst:master Nov 4, 2021
@gakonst
Copy link
Owner

gakonst commented Nov 4, 2021

It's unrelated, merged, thank you!

@frjnn frjnn deleted the feat/add-call-deployer branch November 4, 2021 14:12
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.

None yet

2 participants