-
Notifications
You must be signed in to change notification settings - Fork 8
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
fix: add app client support for nested method call #330
Conversation
// An undefined transaction argument signals that the value will be supplied by a method call argument | ||
if (algosdk.abiTypeIsTransaction(params.method.args[i].type) && transactionsForGroup.length > 0) { | ||
// Move the last transaction from the group to the method call arguments to appease algosdk | ||
const placeholderTransaction = transactionsForGroup.splice(-1, 1)[0] |
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.
splice
mutates the array - desired?
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.
Yep, it is.
@@ -1218,6 +1236,8 @@ export default class AlgoKitComposer { | |||
return { atc: this.atc, transactions: this.atc.buildGroup(), methodCalls: this.atc['methodCalls'] } | |||
} | |||
|
|||
// TODO: NC - Docs about the behaviour |
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.
todo
Ensure the correct transaction group is built when an ABI method call has an ABI method call argument.