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 a way to dry run as any account #81

Open
DamianStraszak opened this issue Mar 3, 2024 · 1 comment
Open

Add a way to dry run as any account #81

DamianStraszak opened this issue Mar 3, 2024 · 1 comment

Comments

@DamianStraszak
Copy link

It seems to me that

pub struct QueryArgs<T> {
should have one additional parameter: the contract caller. This way when dry-running one can pass any account.

@obrok obrok changed the title QueryArgs missed the caller Add a way to dry run as any account Mar 11, 2024
@obrok
Copy link
Collaborator

obrok commented Mar 11, 2024

I agree with the goal of dry-running as any account, but I think this could be achieved in a number of ways, not sure what's best for now, so I just reworded the title of the issue. In particular, the ongoing assumption was that the calling account is dependent on the connection - another option would be to have a method like as_dry_run(account_id) on the connection itself that would return a ReadOnlyConnection with the account to use baked in. TBD by person working on this issue.

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

No branches or pull requests

2 participants