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

[BUG] fixes an incorrect reference to the old create contract class for v2 #1661

Merged

Conversation

aristidesstaffieri
Copy link
Contributor

Reroll of #1655

@aristidesstaffieri aristidesstaffieri self-assigned this Nov 13, 2024
@aristidesstaffieri aristidesstaffieri changed the base branch from master to release/5.25.1 November 13, 2024 22:03
…ntract types, add branch for craete contract v2 in invocation crawler for sac cases
};
} as FnArgsCreateSac;

if (fn.switch().value === 2) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wasn't super clear to me through the xdr if this was possible for the SAC case but I think there's no reason to not include this line. If SACs will keep using v1 then this conditional won't ever be hit.

contractId: rootJson.args.source,
networkDetails,
});
const isToken = !rootJson.args.source
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for both the invocation and sub invocation this should account for not having a source in the root args.

@aristidesstaffieri aristidesstaffieri merged commit 8cea4e3 into release/5.25.1 Nov 14, 2024
3 checks passed
@aristidesstaffieri aristidesstaffieri deleted the bug/auth-entry-create-contract-args-parse-3 branch November 14, 2024 17:10
aristidesstaffieri added a commit that referenced this pull request Nov 14, 2024
* [BUG] fixes an incorrect reference to the old create contract class for v2 (#1661)

* fixes an incorrect reference to the old create contract class for v2

* adds test for create contract v1 in sub invoke

* account for invocations that follow the deployer pattern in create contract types, add branch for craete contract v2 in invocation crawler for sac cases

* updates tests for sac create constructor args and adds optional component to render them

* removes comment in tests

* adds unit test and jest view tests for creater contract deployer pattern (#1668)
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