update sgx library to get patch for vulnerabilities

This commit is contained in:
Valentyn Faychuk 2025-01-21 22:17:57 +02:00
parent dfd5081b1b
commit 1c4f9abd03
Signed by: valy
GPG Key ID: F1AB995E20FEADC5
2 changed files with 2 additions and 1 deletions

@ -33,7 +33,7 @@ tower-http = { version = "0.6", features = ["full"] }
hyper = "1.4"
hyper-util = "0.1"
hyper-rustls = { version = "0.27", features = ["http2"] }
detee-sgx = { git = "https://gitea.detee.cloud/general/detee-sgx", features = ["tonic", "occlum", "sealing"] }
detee-sgx = { git = "https://gitea.detee.cloud/general/detee-sgx", branch = "dthc", features = ["tonic", "occlum", "sealing"] }
[build-dependencies]
tonic-build = "0.12"

@ -48,6 +48,7 @@ impl SolClient {
}
pub async fn mint(&self, recipient: &str) -> Result<String, Box<dyn std::error::Error>> {
// TODO: add the priority fee for the case when the solana network is congested
use std::str::FromStr;
let recipient = solana_sdk::pubkey::Pubkey::from_str(recipient)?;
let associated_token_address = self.create_token_account(&recipient).await?;