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

chore: Added destination account-id for import_contract call #260

Merged
merged 3 commits into from
Jan 10, 2023

Conversation

ChaoticTempest
Copy link
Member

Someone might want to set a different account-id for the imported contract than the original one. For example, let's say a user wants to import a contract multiple times into different accounts to test various states of them in parallel in the same sandbox. That isn't possible right now, so this PR should remedy that.

Sample usage:

worker.import_contract("contract.id".parse()?)
    .dest_account_id("other.id".parse()?)
    .transact()
    .await?;

@ChaoticTempest ChaoticTempest force-pushed the chore/specify-account-id-on-import-contract branch from 7b6cb59 to fd890b5 Compare January 10, 2023 01:30
@ChaoticTempest ChaoticTempest merged commit 5f76424 into main Jan 10, 2023
@ChaoticTempest ChaoticTempest deleted the chore/specify-account-id-on-import-contract branch January 10, 2023 04:59
@frol frol mentioned this pull request Oct 4, 2023
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