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;