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

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