File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 44//! current epoch or the stake for a specific vote account using the
55//! `sol_get_epoch_stake` syscall.
66#![ cfg_attr( docsrs, feature( doc_cfg) ) ]
7+ #![ no_std]
78
89use solana_pubkey:: Pubkey ;
910
@@ -22,7 +23,7 @@ fn get_epoch_stake(var_addr: *const u8) -> u64 {
2223
2324/// Get the current epoch's total stake.
2425pub fn get_epoch_total_stake ( ) -> u64 {
25- get_epoch_stake ( std :: ptr:: null :: < Pubkey > ( ) as * const u8 )
26+ get_epoch_stake ( core :: ptr:: null :: < Pubkey > ( ) as * const u8 )
2627}
2728
2829/// Get the current epoch stake for a given vote address.
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ no_std_crates=(
1717 -p solana-epoch-info
1818 -p solana-epoch-rewards
1919 -p solana-epoch-schedule
20+ -p solana-epoch-stake
2021 -p solana-fee-calculator
2122 -p solana-hash
2223 -p solana-keccak-hasher
You can’t perform that action at this time.
0 commit comments