Fix comment and make less pub

This commit is contained in:
Tyera Eulberg
2020-06-29 19:55:07 -06:00
parent 583cec922b
commit cbfaf254eb
3 changed files with 5 additions and 3 deletions

View File

@ -14,6 +14,8 @@ bs58 = "0.3.1"
Inflector = "0.11.4"
lazy_static = "1.4.0"
solana-sdk = { path = "../sdk", version = "1.3.0" }
solana-stake-program = { path = "../programs/stake", version = "1.3.0" }
solana-vote-program = { path = "../programs/vote", version = "1.3.0" }
spl-memo = "1.0.0"
serde = "1.0.112"
serde_derive = "1.0.103"

View File

@ -23,7 +23,7 @@ pub enum RpcInstruction {
Parsed(Value),
}
/// A duplicate representation of a Message for pretty JSON serialization
/// A duplicate representation of a CompiledInstruction for pretty JSON serialization
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct RpcCompiledInstruction {

View File

@ -8,7 +8,7 @@ use std::{
lazy_static! {
static ref MEMO_PROGRAM_ID: Pubkey = Pubkey::from_str(&spl_memo::id().to_string()).unwrap();
pub static ref PARSABLE_PROGRAM_IDS: HashMap<Pubkey, ParsableProgram> = {
static ref PARSABLE_PROGRAM_IDS: HashMap<Pubkey, ParsableProgram> = {
let mut m = HashMap::new();
m.insert(*MEMO_PROGRAM_ID, ParsableProgram::SplMemo);
m
@ -17,7 +17,7 @@ lazy_static! {
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub enum ParsableProgram {
enum ParsableProgram {
SplMemo,
}