Skip to content

Commit d5d9d60

Browse files
committed
Fix StorageReader
1 parent 01f6e81 commit d5d9d60

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

shared/src/ledger/native_vp.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ where
523523
where
524524
T: BorshDeserialize,
525525
{
526-
let maybe_bytes = Ctx::read_post(self, key)
527-
.wrap_err_with(|| format!("couldn't read_post {}", key))?;
526+
let maybe_bytes = Ctx::read_bytes_post(self, key)
527+
.wrap_err_with(|| format!("couldn't read_bytes_post {}", key))?;
528528
Self::deserialize_if_present(maybe_bytes)
529529
}
530530

@@ -534,8 +534,8 @@ where
534534
where
535535
T: BorshDeserialize,
536536
{
537-
let maybe_bytes = Ctx::read_pre(self, key)
538-
.wrap_err_with(|| format!("couldn't read_pre {}", key))?;
537+
let maybe_bytes = Ctx::read_bytes_pre(self, key)
538+
.wrap_err_with(|| format!("couldn't read_bytes_pre {}", key))?;
539539
Self::deserialize_if_present(maybe_bytes)
540540
}
541541
}

0 commit comments

Comments
 (0)