Skip to content

Commit

Permalink
Fixes for submitting extrinsic
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Aug 16, 2024
1 parent c7db0ef commit 01213d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/threshold-signature-server/src/attestation/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub async fn attest(
let quote = tdx_quote::Quote::mock(signing_key.clone(), input_data.0).as_bytes().to_vec();

let attest_tx = entropy::tx().attestation().attest(quote.clone());
submit_transaction(api, rpc, signer, &attest_tx, None).await?;
submit_transaction(&api, &rpc, &signer, &attest_tx, None).await?;

Ok((StatusCode::OK, Bytes::from(quote)))
}
2 changes: 2 additions & 0 deletions crates/threshold-signature-server/src/attestation/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ pub enum AttestationErr {
#[cfg(any(test, feature = "unsafe"))]
#[error("Could not get block number")]
BlockNumber,
#[error("Substrate: {0}")]
SubstrateClient(#[from] entropy_client::substrate::SubstrateError),
}

impl IntoResponse for AttestationErr {
Expand Down

0 comments on commit 01213d1

Please sign in to comment.