Skip to content

Commit

Permalink
fixup into remove stable functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Jul 12, 2024
1 parent 12e5374 commit d455a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/rust/canister/src/ic/stable_write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pub struct NativeFunction;
impl JsFn for NativeFunction {
fn call(context: &mut Context, this_val: JsValue, argv: &[JsValue]) -> JsValue {
let offset_string = if let JsValue::String(js_string) = argv.get(0).unwrap() {
js_string.to_string()
js_string.to_string() // TODO it would be great to have a direct conversion to u64 but seems the bindings don't support it
} else {
panic!("conversion from JsValue to JsString failed")
};
Expand Down

0 comments on commit d455a91

Please sign in to comment.