lang: Fix Recentblockhashes spelling (#302)

This commit is contained in:
Han Yang 2021-05-21 22:22:54 -07:00 committed by GitHub
parent 691a30ae06
commit 74424fed7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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,