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
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
2 changes: 1 addition & 1 deletion snippets/per-web3js-code/delegate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ 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
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