Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / comments / EditCommentParams

Type Alias: EditCommentParams

type EditCommentParams = {
  appSignature: Hex;
  commentsAddress?: Hex;
  edit: EditCommentData;
  fee?: bigint;
  writeContract: ContractWriteFunctions["editComment"];
};

Defined in: packages/sdk/src/comments/comment.ts:810

Properties

appSignature

appSignature: Hex;

Defined in: packages/sdk/src/comments/comment.ts:829

The author signature.


commentsAddress?

optional commentsAddress: Hex;

Defined in: packages/sdk/src/comments/comment.ts:825

The address of the comments contract

Default

COMMENT_MANAGER_ADDRESS

edit

edit: EditCommentData;

Defined in: packages/sdk/src/comments/comment.ts:816

The edit data

You can obtain this by using the createEditCommentData() function


fee?

optional fee: bigint;

Defined in: packages/sdk/src/comments/comment.ts:820

The fee for the edit operation


writeContract

writeContract: ContractWriteFunctions["editComment"];

Defined in: packages/sdk/src/comments/comment.ts:833

The write contract function