From 2503d1f7cb6254f52cd4783d814a304def860f4a Mon Sep 17 00:00:00 2001 From: Siddharth Suresh Date: Tue, 17 Jan 2023 19:26:33 -0800 Subject: [PATCH] Use better storage error in tests --- soroban-sdk/src/env.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soroban-sdk/src/env.rs b/soroban-sdk/src/env.rs index 91667f8d5..cac53f359 100644 --- a/soroban-sdk/src/env.rs +++ b/soroban-sdk/src/env.rs @@ -330,7 +330,7 @@ impl Env { ) -> Result { use xdr::{ScHostStorageErrorCode, ScStatus}; let status: internal::Status = - ScStatus::HostStorageError(ScHostStorageErrorCode::UnknownError).into(); + ScStatus::HostStorageError(ScHostStorageErrorCode::MissingKeyInGet).into(); Err(status.into()) }