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

Expose the transaction receipt when deploying a contract #806

Closed
pandadefi opened this issue Jun 15, 2022 · 2 comments · Fixed by #955
Closed

Expose the transaction receipt when deploying a contract #806

pandadefi opened this issue Jun 15, 2022 · 2 comments · Fixed by #955
Assignees
Labels
category: feature New feature or request

Comments

@pandadefi
Copy link
Contributor

pandadefi commented Jun 15, 2022

Overview

Using brownie I can get the transaction receipt when deploying a contract.
With brownie the transaction receipt is accessible using tx.

Example

account = accounts.load("MyAccount")
contract =  account.deploy(project.MyContract)
contract.tx
@pandadefi pandadefi added the category: feature New feature or request label Jun 15, 2022
@fubuloubu
Copy link
Member

In general, it might be useful to link to the transaction of a contracts deployment, for any contract

@antazoey
Copy link
Contributor

antazoey commented Aug 9, 2022

Whenever possible, it should use the receipt.
It may not always be possible though, which I think is ok depending on the use-case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants