Browse Source

lang: Fix Recentblockhashes spelling (#302)

Han Yang 4 years ago
parent
commit
74424fed7b
2 changed files with 3 additions and 3 deletions
  1. 2 2
      lang/syn/src/lib.rs
  2. 1 1
      lang/syn/src/parser/accounts.rs

+ 2 - 2
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,

+ 1 - 1
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,