소스 검색

drk: Correct endpoint for airdrop method.

parazyd 4 년 전
부모
커밋
002a8366ba
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      bin/drk/src/main.rs

+ 1 - 1
bin/drk/src/main.rs

@@ -128,7 +128,7 @@ impl Drk {
         println!("Requesting airdrop for {}", addr);
         println!("Requesting airdrop for {}", addr);
         let req = jsonrpc::request(json!("airdrop"), json!([json!(addr.to_string()), amount]));
         let req = jsonrpc::request(json!("airdrop"), json!([json!(addr.to_string()), amount]));
         let rpc_client = RpcClient::new(endpoint).await?;
         let rpc_client = RpcClient::new(endpoint).await?;
-        let rep = self.rpc_client.request(req).await.or_else(|e| {
+        let rep = rpc_client.request(req).await.or_else(|e| {
             error!("Failed requesting airdrop: {}", e);
             error!("Failed requesting airdrop: {}", e);
             return Err(e)
             return Err(e)
         })?;
         })?;