-
Notifications
You must be signed in to change notification settings - Fork 25
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
[BUG] fixes an incorrect reference to the old create contract class for v2 #1661
Conversation
…ntract types, add branch for craete contract v2 in invocation crawler for sac cases
}; | ||
} as FnArgsCreateSac; | ||
|
||
if (fn.switch().value === 2) { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
* [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)
Reroll of #1655