Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion nonce-account/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
//! Functions related to nonce accounts.
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

use {
core::cell::RefCell,
solana_account::{state_traits::StateMut, AccountSharedData, ReadableAccount},
solana_hash::Hash,
solana_nonce::{
state::{Data, State},
versions::Versions,
},
solana_sdk_ids::system_program,
std::cell::RefCell,
};

pub fn create_account(lamports: u64) -> RefCell<AccountSharedData> {
Expand Down Expand Up @@ -73,6 +74,8 @@ pub fn get_system_account_kind(account: &AccountSharedData) -> Option<SystemAcco

#[cfg(test)]
mod tests {
extern crate std;
use std::boxed::Box;
use {
super::*,
solana_fee_calculator::FeeCalculator,
Expand Down
1 change: 1 addition & 0 deletions scripts/check-no-std.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ no_std_crates=(
-p solana-fee-calculator
-p solana-hash
-p solana-msg
-p solana-nonce-account
-p solana-program-error
-p solana-program-log
-p solana-program-log-macro
Expand Down
Loading