From 7199b6d329a297544075ff68f200c1a298e015d4 Mon Sep 17 00:00:00 2001 From: 448-OG Date: Wed, 18 Sep 2024 22:59:27 +0300 Subject: [PATCH] Upgrade outdated dependencies and resolve borsh deprecated import --- Cargo.toml | 8 ++++---- src/processor.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ba5f10e..01d4b3a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,9 +6,9 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -solana-program = "=1.10.29" -borsh = "0.9.3" -thiserror = "1.0.31" +solana-program = "2.0.10" +borsh = "1.5.1" +thiserror = "1.0.63" [lib] -crate-type = ["cdylib", "lib"] \ No newline at end of file +crate-type = ["cdylib", "lib"] diff --git a/src/processor.rs b/src/processor.rs index 014cf98..54e26c1 100644 --- a/src/processor.rs +++ b/src/processor.rs @@ -4,7 +4,7 @@ use crate::state::{Reply, ReplyCounter, StudentInfo}; use borsh::BorshSerialize; use solana_program::{ account_info::{next_account_info, AccountInfo}, - borsh::try_from_slice_unchecked, + borsh1::try_from_slice_unchecked, entrypoint::ProgramResult, msg, program::invoke_signed,