Rename solana-program-sdk to solana-program

This commit is contained in:
Michael Vines
2020-10-23 17:22:10 -07:00
parent 92ce381d60
commit dd711ab5fb
65 changed files with 123 additions and 127 deletions

View File

@@ -4,7 +4,7 @@ pub mod ristretto;
use crate::ristretto::ristretto_mul;
use curve25519_dalek::{constants::RISTRETTO_BASEPOINT_POINT, scalar::Scalar};
use solana_program_sdk::{
use solana_program::{
account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, info, pubkey::Pubkey,
};

View File

@@ -1,5 +1,5 @@
use curve25519_dalek::{ristretto::RistrettoPoint, scalar::Scalar};
use solana_program_sdk::program_error::ProgramError;
use solana_program::program_error::ProgramError;
/// Multiply a ristretto point with a scalar
///
@@ -37,7 +37,7 @@ pub fn ristretto_mul(
)
};
match status {
solana_program_sdk::entrypoint::SUCCESS => Ok(result),
solana_program::entrypoint::SUCCESS => Ok(result),
_ => Err(status.into()),
}
}