Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export function createDecompressInterfaceInstruction(
lamportsChangeAccountMerkleTreeIndex: 0,
lamportsChangeAccountOwnerIndex: 0,
outputQueue: firstQueueIndex, // First queue in packed accounts
maxTopUp: 0,
maxTopUp: 65535,
cpiContext: null,
compressions,
proof: validityProof.compressedProof
Expand Down
2 changes: 1 addition & 1 deletion js/compressed-token/src/v3/instructions/create-mint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function encodeCreateMintInstructionData(
leafIndex: 0,
proveByIndex: false,
rootIndex: params.rootIndex,
maxTopUp: 0,
maxTopUp: 65535,
createMint: {
readOnlyAddressTrees: [0, 0, 0, 0],
readOnlyAddressTreeRootIndices: [0, 0, 0, 0],
Expand Down
2 changes: 1 addition & 1 deletion js/compressed-token/src/v3/instructions/decompress-mint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function encodeDecompressMintInstructionData(
leafIndex: params.leafIndex,
proveByIndex: params.proveByIndex,
rootIndex: params.rootIndex,
maxTopUp: 0,
maxTopUp: 65535,
createMint: null,
actions: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function encodeCompressedMintToInstructionData(
leafIndex: params.leafIndex,
proveByIndex: true,
rootIndex: params.rootIndex,
maxTopUp: 0,
maxTopUp: 65535,
createMint: null,
actions: [
{
Expand Down
2 changes: 1 addition & 1 deletion js/compressed-token/src/v3/instructions/unwrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function createUnwrapInstruction(
lamportsChangeAccountMerkleTreeIndex: 0,
lamportsChangeAccountOwnerIndex: 0,
outputQueue: 0,
maxTopUp: 0,
maxTopUp: 65535,
cpiContext: null,
compressions,
proof: null,
Expand Down
2 changes: 1 addition & 1 deletion js/compressed-token/src/v3/instructions/update-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function encodeUpdateMetadataInstructionData(
leafIndex: params.leafIndex,
proveByIndex: params.proof === null,
rootIndex: params.rootIndex,
maxTopUp: 0,
maxTopUp: 65535,
createMint: null,
actions: [convertActionToBorsh(params.action)],
proof: params.proof,
Expand Down
2 changes: 1 addition & 1 deletion js/compressed-token/src/v3/instructions/update-mint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function encodeUpdateMintInstructionData(
leafIndex: params.leafIndex,
proveByIndex: params.proveByIndex,
rootIndex: params.rootIndex,
maxTopUp: 0,
maxTopUp: 65535,
createMint: null,
actions: [action],
proof: params.proof,
Expand Down
2 changes: 1 addition & 1 deletion js/compressed-token/src/v3/instructions/wrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function createWrapInstruction(
lamportsChangeAccountMerkleTreeIndex: 0,
lamportsChangeAccountOwnerIndex: 0,
outputQueue: 0,
maxTopUp: 0,
maxTopUp: 65535,
cpiContext: null,
compressions,
proof: null,
Expand Down
Loading