Skip to content

Commit

Permalink
Add comment explaining linter workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Aug 7, 2023
1 parent 9da23b5 commit 4f7acd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export function assembleTransaction(

switch (raw.operations[0].type) {
case "invokeHostFunction":
// @ts-ignore
// In this case, we don't want to clone the operation, so we drop it.
// @ts-ignore hack because `TransactionBuilder.operations` is private
txnBuilder.operations = [];

const invokeOp: Operation.InvokeHostFunction = raw.operations[0];
Expand Down

0 comments on commit 4f7acd3

Please sign in to comment.