Skip to content

Commit 2425fe5

Browse files
committed
fix: allow empty report_data payloads for getquote
1 parent eb97c56 commit 2425fe5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk/rust/src/dstack_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl DstackClient {
143143
}
144144

145145
pub async fn get_quote(&self, report_data: Vec<u8>) -> Result<GetQuoteResponse> {
146-
if report_data.is_empty() || report_data.len() > 64 {
146+
if report_data.len() > 64 {
147147
anyhow::bail!("Invalid report data length")
148148
}
149149
let hex_data = hex_encode(report_data);

0 commit comments

Comments
 (0)