Skip to content

Commit

Permalink
Merge pull request #2307 from conr2d/fix-typos
Browse files Browse the repository at this point in the history
Fix typos in comment
  • Loading branch information
chipshort authored Dec 9, 2024
2 parents b5ee955 + b64f3f5 commit e17ecc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vm/src/calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/vm/src/imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e17ecc4

Please sign in to comment.