diff --git a/src/c/types.rs b/src/c/types.rs index efabaf1..d588701 100644 --- a/src/c/types.rs +++ b/src/c/types.rs @@ -1,4 +1,4 @@ -use std::ffi::{c_char, CStr, CString}; +use std::ffi::{CStr, CString, c_char}; use starknet::core::utils::get_selector_from_name; use torii_client::client::Client; diff --git a/src/wasm/mod.rs b/src/wasm/mod.rs index 1acc201..2e996af 100644 --- a/src/wasm/mod.rs +++ b/src/wasm/mod.rs @@ -676,7 +676,7 @@ impl ToriiClient { /// # Returns /// Result containing paginated entities or error #[wasm_bindgen(js_name = getAllEntities)] - pub async fn get_all_entities(&self, limit: u32, offset: u32, internal_updated_at: u64) -> Result { + pub async fn get_all_entities(&self, limit: u32, offset: u32) -> Result { #[cfg(feature = "console-error-panic")] console_error_panic_hook::set_once(); @@ -689,7 +689,7 @@ impl ToriiClient { dont_include_hashed_keys: false, order_by: vec![], entity_models: vec![], - internal_updated_at, + internal_updated_at: 0, }) .await; diff --git a/src/wasm/types.rs b/src/wasm/types.rs index 323b20d..ed58925 100644 --- a/src/wasm/types.rs +++ b/src/wasm/types.rs @@ -8,7 +8,7 @@ use serde_wasm_bindgen::to_value; use starknet::core::types::FunctionCall; use starknet::core::utils::get_selector_from_name; use starknet_crypto::Felt; -use tsify_next::{declare, Tsify}; +use tsify_next::{Tsify, declare}; use wasm_bindgen::prelude::*; use super::utils::parse_ty_as_json_str;