Skip to content

Commit

Permalink
fixed wrap-rust BigInt init
Browse files Browse the repository at this point in the history
  • Loading branch information
krisbitney committed Jul 11, 2023
1 parent fe31c57 commit 4acd393
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion implementations/wrap-rust/URI.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
wrap://ipfs/QmSsbJkA2oXYGHK5gdhj384opz6bG4voLgnVK1yryjMdFe
wrap://ipfs/QmSRfFm8BY9xGp1MomBBeLmB1HoiPUbYC9XP6oQb2WjSGa
Binary file modified implementations/wrap-rust/build/wrap.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion implementations/wrap-rust/src/helpers/to_rust_init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn _to_rust_init(value: &str) -> String {
"String" => optional_modifier("String::new()", optional),
"Boolean" => optional_modifier("false", optional),
"Bytes" => optional_modifier("vec![]", optional),
"BigInt" => optional_modifier("BigIntWrapper { BigInt::default() }", optional),
"BigInt" => optional_modifier("BigIntWrapper(BigInt::default())", optional),
"BigNumber" => optional_modifier("BigNumber::default()", optional),
"JSON" => optional_modifier("JSONString::from(JSON::Value::Null)", optional),
_ => {
Expand Down

0 comments on commit 4acd393

Please sign in to comment.