Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 165a5f3

Browse files
committed
Update dependencies
1 parent 046e909 commit 165a5f3

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

Cargo.lock

Lines changed: 4 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ repository = "https://github.com/febo/token"
2121
[workspace.dependencies]
2222
mollusk-svm = { version = "0.0.13", features = ["fuzz"], git = "https://github.com/buffalojoec/mollusk.git" }
2323
mollusk-svm-fuzz-fixture = { version = "0.0.13", git = "https://github.com/buffalojoec/mollusk.git" }
24-
pinocchio = "0.7.1"
25-
pinocchio-log = "0.3.0"
26-
pinocchio-pubkey = "0.2.2"
24+
pinocchio = { version = "0.7.1", git = "https://github.com/febo/pinocchio.git" }
25+
pinocchio-log = { version = "0.3.0", git = "https://github.com/febo/pinocchio.git" }
26+
pinocchio-pubkey = { version = "0.2.2", git = "https://github.com/febo/pinocchio.git" }

program/src/processor/initialize_mint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn process_initialize_mint(
4444
// Check rent-exempt status of the mint account.
4545

4646
let is_exempt = if let Some(rent_sysvar_info) = rent_sysvar_info {
47-
let rent = unsafe { Rent::from_bytes(rent_sysvar_info.borrow_data_unchecked()) };
47+
let rent = unsafe { Rent::from_bytes(rent_sysvar_info.borrow_data_unchecked())? };
4848
rent.is_exempt(mint_info.lamports(), size_of::<Mint>())
4949
} else {
5050
Rent::get()?.is_exempt(mint_info.lamports(), size_of::<Mint>())

program/src/processor/shared/initialize_account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub fn process_initialize_account(
4242

4343
let minimum_balance = if rent_sysvar_account {
4444
let rent_sysvar_info = remaning.first().ok_or(ProgramError::NotEnoughAccountKeys)?;
45-
let rent = unsafe { Rent::from_bytes(rent_sysvar_info.borrow_data_unchecked()) };
45+
let rent = unsafe { Rent::from_bytes(rent_sysvar_info.borrow_data_unchecked())? };
4646
rent.minimum_balance(new_account_info_data_len)
4747
} else {
4848
Rent::get()?.minimum_balance(new_account_info_data_len)

program/src/processor/shared/initialize_multisig.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub fn process_initialize_multisig(
3232
let multisig_info_data_len = multisig_info.data_len();
3333

3434
let is_exempt = if let Some(rent_sysvar_info) = rent_sysvar_info {
35-
let rent = unsafe { Rent::from_bytes(rent_sysvar_info.borrow_data_unchecked()) };
35+
let rent = unsafe { Rent::from_bytes(rent_sysvar_info.borrow_data_unchecked())? };
3636
rent.is_exempt(multisig_info.lamports(), multisig_info_data_len)
3737
} else {
3838
Rent::get()?.is_exempt(multisig_info.lamports(), multisig_info_data_len)

0 commit comments

Comments
 (0)