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

Add Env::as_contract for testutils #761

Merged
merged 6 commits into from
Nov 9, 2022
Merged

Add Env::as_contract for testutils #761

merged 6 commits into from
Nov 9, 2022

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Nov 9, 2022

What

Add Env::as_contract that executes a function inside a test frame artificially created that may not reference a contract that is actually deployed.

Why

To support providing functionality where logic is executed as a contract, without the contract having to provide that logic itself. This is helpful in testing.

Dependent on stellar/rs-soroban-env#565

Close #739

@leighmcculloch leighmcculloch marked this pull request as ready for review November 9, 2022 05:34
@leighmcculloch leighmcculloch enabled auto-merge (squash) November 9, 2022 05:34
@leighmcculloch leighmcculloch merged commit 4b1a8f6 into main Nov 9, 2022
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.

Make a way to be a contract in tests
2 participants