Skip to content

Conversation

@Stevengre
Copy link

No description provided.

@Stevengre Stevengre self-assigned this Dec 11, 2025
Copy link
Member

@jberthold jberthold left a comment

Choose a reason for hiding this comment

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

LGTM as a work-around (behaviour is equivalent).
A similar change was applied earlier in

let amount_bytes: [u8; 8] = rest
.get(..8)
.and_then(|slice| slice.try_into().ok())
.ok_or(InvalidInstruction)?;
let amount = u64::from_le_bytes(amount_bytes);

@jberthold jberthold merged commit 5f5531d into proofs Dec 11, 2025
1 check passed
@Stevengre Stevengre deleted the jh/spl/avoid-minus-1 branch December 12, 2025 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants