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

Utility for deploying account in tests #2672

Open
cptartur opened this issue Nov 14, 2024 · 2 comments
Open

Utility for deploying account in tests #2672

cptartur opened this issue Nov 14, 2024 · 2 comments
Labels
feature New feature request/description new snforge

Comments

@cptartur
Copy link
Member

In some cases, user might want to invoke a contract through an account.
It is possible to do so in forge already be deploying an account contract and making invokes through it.

This however requires setting up the account by importing an account contract and then declaring and deploying it.

Add an utility function that will declare and deploy a predefined account that can be used in tests. For that, we can utilize e.g. an account from OZ repo.

@cptartur cptartur added feature New feature request/description snforge labels Nov 14, 2024
@cptartur cptartur moved this to New in Starknet foundry Nov 14, 2024
@github-actions github-actions bot added the new label Nov 14, 2024
@piotmag769
Copy link
Member

Wouldn't a dedicated section in docs be better? Do we want to bundle OZ or any other contract with snforge? Seems a bit excessive to me

@cptartur
Copy link
Member Author

Wouldn't a dedicated section in docs be better? Do we want to bundle OZ or any other contract with snforge? Seems a bit excessive to me

Don't think bundling a contract would increase the binary size significantly or cause other problems. But this is to be discussed.

Docs don't resolve this entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request/description new snforge
Projects
Status: New
Development

No branches or pull requests

2 participants