Skip to content

Commit 3ac47b4

Browse files
committed
Update host_exports.rs
1 parent 6635035 commit 3ac47b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

runtime/wasm/src/host_exports.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,9 @@ impl HostExports {
403403
"store_remove",
404404
)?;
405405

406-
if let Some(entity) = state.entity_cache.get(&key, GetScope::Store)? {
406+
if let Some(entity) = state.entity_cache.get(&key, GetScope::Store)
407+
.map_err(|e| HostExportError::Deterministic(e.into()))?
408+
{
407409
state
408410
.metrics
409411
.track_storage_size_change(&entity_type, &entity, true);
@@ -1396,7 +1398,7 @@ fn bytes_to_string_is_lossy() {
13961398
);
13971399

13981400
assert_eq!(
1399-
"Downcoin WETH-USDT",
1401+
"Downcoin WETH-USDT",
14001402
bytes_to_string(
14011403
&graph::log::logger(true),
14021404
vec![

0 commit comments

Comments
 (0)