Skip to content

Conversation

@acheroncrypto
Copy link
Collaborator

Problem

Currently, the default behavior of the Lamports methods is to panic on overflow (due to overflow-checks flag).

Summary of changes

Return ProgramError::ArithmeticOverflow in the case of an overflow of Lamports trait methods instead of panicking, giving more flexibility to the developer to gracefully handle overflow situations.

@vercel
Copy link

vercel bot commented Apr 14, 2024

@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto added lang next Required for the next release labels Apr 14, 2024
@acheroncrypto acheroncrypto merged commit 257b560 into solana-foundation:master Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang next Required for the next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant