Explorar el Código

client/example: Fix build

Armani Ferrante hace 4 años
padre
commit
0354bab56f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      client/example/src/main.rs

+ 2 - 2
client/example/src/main.rs

@@ -31,12 +31,12 @@ fn main() -> Result<()> {
     let opts = Opts::parse();
     let opts = Opts::parse();
 
 
     // Wallet and cluster params.
     // Wallet and cluster params.
-    let payer = read_keypair_file(&shellexpand::tilde("~/.config/solana/id.json"))
+    let payer = read_keypair_file(&*shellexpand::tilde("~/.config/solana/id.json"))
         .expect("Example requires a keypair file");
         .expect("Example requires a keypair file");
     let url = "http://localhost:8899";
     let url = "http://localhost:8899";
 
 
     // Client.
     // Client.
-    let client = Client::new_with_options(url, payer, CommitmentConfig::recent());
+    let client = Client::new_with_options(url, payer, CommitmentConfig::processed());
 
 
     // Run tests.
     // Run tests.
     composite(&client, opts.composite_pid)?;
     composite(&client, opts.composite_pid)?;