Skip to content

Commit

Permalink
fix: ts build errors (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
ananas-block authored Apr 25, 2024
1 parent 424f144 commit 7b2e833
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function packCompressedTokenAccounts(
} = params;

const _remainingAccounts = remainingAccounts.slice();
let delegateIndex = null;
let delegateIndex: null | number = null;

if (
inputCompressedTokenAccounts.length > 0 &&
Expand Down
1 change: 0 additions & 1 deletion js/stateless.js/src/state/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export type CompressedTokenInstructionDataTransfer = {
inputTokenDataWithContext: InputTokenDataWithContext[];
outputCompressedAccounts: TokenTransferOutputData[];
outputStateMerkleTreeAccountIndices: Buffer;
pubkeyArray: PublicKey[];
isCompress: boolean;
compressionAmount: BN | null;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ async function parseEventWithTokenTlvData(
nullifierQueue:
// FIXME: fix make dynamic
defaultTestStateTreeAccounts().nullifierQueue,
// pubkeyArray[event.outputStateMerkleTreeAccountIndices[i]],
hash: outputHashes[i],
leafIndex: event.outputLeafIndices[i],
};
Expand Down
52 changes: 9 additions & 43 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7b2e833

Please sign in to comment.