Skip to content

Fix: Correct typos in comments and add empty proof constant #1901

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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: 1 addition & 1 deletion js/compressed-token/src/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ export const CompressedTokenInstructionDataRevokeLayout = struct([
u8('outputAccountMerkleTreeIndex'),
]);

// Approve and revoke instuctions do not support optional proof yet.
// Approve and revoke instructions do not support optional proof yet.
const emptyProof: ValidityProof = {
a: new Array(32).fill(0),
b: new Array(64).fill(0),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3246,7 +3246,7 @@ pub mod local_sdk {
/// If the provided `pubkey` is not a part of the collection, it gets
/// inserted with a `next_index`.
///
/// If the privided `pubkey` already exists in the collection, its already
/// If the provided `pubkey` already exists in the collection, its already
/// existing index is returned.
pub fn insert_or_get(&mut self, pubkey: Pubkey) -> u8 {
self.insert_or_get_config(pubkey, false, true)
Expand Down
2 changes: 1 addition & 1 deletion programs/compressed-token/src/delegation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub struct CompressedTokenInstructionDataApprove {
}

/// Processes an approve instruction.
/// - creates an output compressed acount which is delegated to the delegate.
/// - creates an output compressed account which is delegated to the delegate.
/// - creates a change account for the remaining amount (sum inputs - delegated amount).
/// - ignores prior delegations.
/// 1. unpack instruction data and input compressed accounts
Expand Down