Skip to content
2 changes: 2 additions & 0 deletions cn/snippets/per-web3js-code/create.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import {
Member,
createCreatePermissionInstruction,
TX_LOGS_FLAG,
AUTHORITY_FLAG,
} from "@magicblock-labs/ephemeral-rollups-sdk";

// Define members
Expand Down
6 changes: 3 additions & 3 deletions cn/snippets/per-web3js-code/delegate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import {
// Build the instruction
const delegatePermissionIx = createDelegatePermissionInstruction({
payer: payer.publicKey,
authority: [payer.publicKey, true], // defined as authority in permission members
permissionedAccount: [permissionedAccountKeypair.publicKey, false], // optional signer, since payer is defined as authority in permission members
ownerProgram: PERMISSION_PROGRAM_ID
authority: [payer.publicKey, true], // defined as authority in permission members
permissionedAccount: [permissionedAccountKeypair.publicKey, false], // optional signer, since payer is defined as authority in permission members
ownerProgram: PERMISSION_PROGRAM_ID,
validator,
});

Expand Down
2 changes: 2 additions & 0 deletions jp/snippets/per-web3js-code/create.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import {
Member,
createCreatePermissionInstruction,
TX_LOGS_FLAG,
AUTHORITY_FLAG,
} from "@magicblock-labs/ephemeral-rollups-sdk";

// Define members
Expand Down
6 changes: 3 additions & 3 deletions jp/snippets/per-web3js-code/delegate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import {
// Build the instruction
const delegatePermissionIx = createDelegatePermissionInstruction({
payer: payer.publicKey,
authority: [payer.publicKey, true], // defined as authority in permission members
permissionedAccount: [permissionedAccountKeypair.publicKey, false], // optional signer, since payer is defined as authority in permission members
ownerProgram: PERMISSION_PROGRAM_ID
authority: [payer.publicKey, true], // defined as authority in permission members
permissionedAccount: [permissionedAccountKeypair.publicKey, false], // optional signer, since payer is defined as authority in permission members
ownerProgram: PERMISSION_PROGRAM_ID,
validator,
});

Expand Down
2 changes: 2 additions & 0 deletions ko/snippets/per-web3js-code/create.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import {
Member,
createCreatePermissionInstruction,
TX_LOGS_FLAG,
AUTHORITY_FLAG,
} from "@magicblock-labs/ephemeral-rollups-sdk";

// Define members
Expand Down
6 changes: 3 additions & 3 deletions ko/snippets/per-web3js-code/delegate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import {
// Build the instruction
const delegatePermissionIx = createDelegatePermissionInstruction({
payer: payer.publicKey,
authority: [payer.publicKey, true], // defined as authority in permission members
permissionedAccount: [permissionedAccountKeypair.publicKey, false], // optional signer, since payer is defined as authority in permission members
ownerProgram: PERMISSION_PROGRAM_ID
authority: [payer.publicKey, true], // defined as authority in permission members
permissionedAccount: [permissionedAccountKeypair.publicKey, false], // optional signer, since payer is defined as authority in permission members
ownerProgram: PERMISSION_PROGRAM_ID,
validator,
});

Expand Down
2 changes: 2 additions & 0 deletions snippets/per-web3js-code/create.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import {
Member,
createCreatePermissionInstruction,
TX_LOGS_FLAG,
AUTHORITY_FLAG,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Could you also apply this import fix to the localized copies of this same snippet? They currently have the same missing imports: cn/snippets/per-web3js-code/create.mdx, jp/snippets/per-web3js-code/create.mdx, and ko/snippets/per-web3js-code/create.mdx.

} from "@magicblock-labs/ephemeral-rollups-sdk";

// Define members
Expand Down
6 changes: 3 additions & 3 deletions snippets/per-web3js-code/delegate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import {
// Build the instruction
const delegatePermissionIx = createDelegatePermissionInstruction({
payer: payer.publicKey,
authority: [payer.publicKey, true], // defined as authority in permission members
permissionedAccount: [permissionedAccountKeypair.publicKey, false], // optional signer, since payer is defined as authority in permission members
ownerProgram: PERMISSION_PROGRAM_ID
authority: [payer.publicKey, true], // defined as authority in permission members
permissionedAccount: [permissionedAccountKeypair.publicKey, false], // optional signer, since payer is defined as authority in permission members
ownerProgram: PERMISSION_PROGRAM_ID,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comma fix is correct. Could you also apply it to the localized copies (cn/, jp/, and ko), and while touching this snippet, align the authority and permissionedAccount indentation with the other fields in the object literal?

validator,
});

Expand Down