diff --git a/lang/syn/src/lib.rs b/lang/syn/src/lib.rs index be6244bb..f4c16d5f 100644 --- a/lang/syn/src/lib.rs +++ b/lang/syn/src/lib.rs @@ -223,7 +223,7 @@ impl Field { SysvarTy::Rent => quote! {Rent}, SysvarTy::EpochSchedule => quote! {EpochSchedule}, SysvarTy::Fees => quote! {Fees}, - SysvarTy::RecentBlockHashes => quote! {RecentBlockHashes}, + SysvarTy::RecentBlockhashes => quote! {RecentBlockhashes}, SysvarTy::SlotHashes => quote! {SlotHashes}, SysvarTy::SlotHistory => quote! {SlotHistory}, SysvarTy::StakeHistory => quote! {StakeHistory}, @@ -260,7 +260,7 @@ pub enum SysvarTy { Rent, EpochSchedule, Fees, - RecentBlockHashes, + RecentBlockhashes, SlotHashes, SlotHistory, StakeHistory, diff --git a/lang/syn/src/parser/accounts.rs b/lang/syn/src/parser/accounts.rs index 207fdba6..33d5417e 100644 --- a/lang/syn/src/parser/accounts.rs +++ b/lang/syn/src/parser/accounts.rs @@ -173,7 +173,7 @@ fn parse_sysvar(path: &syn::Path) -> SysvarTy { "Rent" => SysvarTy::Rent, "EpochSchedule" => SysvarTy::EpochSchedule, "Fees" => SysvarTy::Fees, - "RecentBlockhashes" => SysvarTy::RecentBlockHashes, + "RecentBlockhashes" => SysvarTy::RecentBlockhashes, "SlotHashes" => SysvarTy::SlotHashes, "SlotHistory" => SysvarTy::SlotHistory, "StakeHistory" => SysvarTy::StakeHistory,