Skip to content

Commit

Permalink
fix: start signature
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalabru committed Feb 1, 2025
1 parent ffc923c commit f5f097e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/core/src/simnet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct GlobalState {
pub epoch_info: EpochInfo,
}

pub async fn start() {
pub async fn start() -> Result<(), Box<dyn std::error::Error>> {
let svm = LiteSVM::new();

// Todo: should check config first
Expand Down Expand Up @@ -82,7 +82,6 @@ pub async fn start() {

if ctx.svm.get_account(&program_id).is_none() {
println!("Retrieving account from Mainnet: {:?}", program_id);
// solana_rpc_client::rpc_client::RpcClient::new(url)
let mainnet_account = rpc_client.get_account(&program_id).unwrap();
let _ = ctx.svm.set_account(*program_id, mainnet_account);
println!("Injecting {:?}", program_id);
Expand Down

0 comments on commit f5f097e

Please sign in to comment.