Sdk: start to appease clippy's integer arithmetic check (#15736)

* Move to module-level clippy allowance

* Fix stake_weighted_timestamp math

* Fix genesis_config

* Fix shred_version

* Fix hard_forks

* Fix process_instruction

* Add ArithmeticOverflow ix error

* Fix nonce_keyed_account

* Update BankSlotDelta frozen abi due to new ix error
This commit is contained in:
Tyera Eulberg
2021-03-08 18:37:57 -07:00
committed by GitHub
parent cae8f61952
commit e3e8179f2d
15 changed files with 41 additions and 18 deletions

View File

@ -198,6 +198,9 @@ pub enum InstructionError {
#[error("Invalid account owner")]
InvalidAccountOwner,
#[error("Program arithmetic overflowed")]
ArithmeticOverflow,
}
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize)]