Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hu55a1n1 committed Oct 3, 2024
1 parent c4c8fde commit 00d916f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/cli/src/handler/enclave_start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ async fn gramine_manifest(
.arg("-Dra_type=dcap")
.arg(format!("-Dra_client_spid={}", ra_client_spid))
.arg("-Dra_client_linkable=1")
.arg(format!("-Dchain_id={}", chain_id.to_string()))
.arg(format!("-Dchain_id={}", chain_id))
.arg(format!("-Dquartz_dir={}", quartz_dir.display()))
.arg(format!("-Dtrusted_height={}", trusted_height))
.arg(format!("-Dtrusted_hash={}", trusted_hash))
Expand Down
6 changes: 3 additions & 3 deletions crates/utils/cw-client/src/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl CwClient for GrpcClient {
msgs,
account.sequence,
account.account_number,
&chain_id,
chain_id,
)
.map_err(|e| anyhow!("failed to create msg/tx: {}", e))?;

Expand Down Expand Up @@ -194,10 +194,10 @@ pub fn tx_bytes(
chain_id: &TmChainId,
) -> Result<Vec<u8>, Box<dyn Error>> {
let tx_body = tx::Body::new(msgs, "", 0u16);
let signer_info = SignerInfo::single_direct(Some(tm_pubkey.into()), sequence_number);
let signer_info = SignerInfo::single_direct(Some(tm_pubkey), sequence_number);
let auth_info = signer_info.auth_info(Fee::from_amount_and_gas(amount, gas));
let sign_doc = SignDoc::new(&tx_body, &auth_info, chain_id, account_number)?;
let tx_signed = sign_doc.sign(&secret)?;
let tx_signed = sign_doc.sign(secret)?;
Ok(tx_signed.to_bytes()?)
}

Expand Down
2 changes: 1 addition & 1 deletion examples/transfers/enclave/src/wslistener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ fn extract_event_info(
Ok((contract_address, ephemeral_pubkey, sender))
}

async fn transfer_handler<A: Attestor>(
async fn transfer_handler<A>(
client: &TransfersService<A>,
contract: &AccountId,
ws_config: &WsListenerConfig,
Expand Down

0 comments on commit 00d916f

Please sign in to comment.