Skip to content

Commit

Permalink
Add missing result check
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Mar 2, 2021
1 parent d6d631a commit 5a6c3ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vm/src/imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,8 @@ mod tests {
leave_default_data(&env);

let api = MockApi::default();
do_addr_canonicalize::<MA, MS, MQ>(&env, source_ptr, dest_ptr).unwrap();
let res = do_addr_canonicalize::<MA, MS, MQ>(&env, source_ptr, dest_ptr).unwrap();
assert_eq!(res, 0);
let data = force_read(&env, dest_ptr);
assert_eq!(data.len(), api.canonical_length);
}
Expand Down

0 comments on commit 5a6c3ca

Please sign in to comment.