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: reusing deployed contract in js test #21

Draft
wants to merge 2 commits into
base: jc/0.65
Choose a base branch
from

Conversation

wei3erHase
Copy link
Contributor

@wei3erHase wei3erHase commented Nov 27, 2024

Avoiding re-deploying the contract on each it instance, they are executed sequentially on the same PXE. It's a bit inconvenient for certain tests tho.
I'm just trying to understand why i cannot re-use them in my custom program, getting No public key registered for address error

@wei3erHase wei3erHase marked this pull request as draft November 27, 2024 14:32
@critesjosh
Copy link
Collaborator

I think it's conceptually convenient to start with a fresh contract each time, so future tests are not dependent on previous tests.

You see the No public key registered for address error with this code as is? or when using multiple PXEs?

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