From b64f3f5369d34c241703f3a01570bf47a621bde9 Mon Sep 17 00:00:00 2001 From: Jeeyong Um Date: Sun, 8 Dec 2024 17:29:21 +0900 Subject: [PATCH] Fix typos in comment --- packages/vm/src/calls.rs | 2 +- packages/vm/src/imports.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vm/src/calls.rs b/packages/vm/src/calls.rs index 5f6af1de1..e2021c9ff 100644 --- a/packages/vm/src/calls.rs +++ b/packages/vm/src/calls.rs @@ -24,7 +24,7 @@ use crate::serde::{from_slice, to_vec}; /// deserializing JSON is more expensive. As a consequence, any sane contract should hit /// the deserializer limit before the read limit. mod read_limits { - /// A mibi (mega binary) + /// A mebi (mega binary) const MI: usize = 1024 * 1024; /// Max length (in bytes) of the result data from an instantiate call. pub const RESULT_INSTANTIATE: usize = 64 * MI; diff --git a/packages/vm/src/imports.rs b/packages/vm/src/imports.rs index dc8ee955f..609a3062c 100644 --- a/packages/vm/src/imports.rs +++ b/packages/vm/src/imports.rs @@ -32,7 +32,7 @@ use crate::GasInfo; /// A kibi (kilo binary) const KI: usize = 1024; -/// A mibi (mega binary) +/// A mebi (mega binary) const MI: usize = 1024 * 1024; /// Max key length for db_write/db_read/db_remove/db_scan (when VM reads the key argument from Wasm memory) const MAX_LENGTH_DB_KEY: usize = 64 * KI;