Skip to content

Commit

Permalink
Update wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
broody committed Jun 19, 2024
1 parent 49fa710 commit 90609fc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
12 changes: 1 addition & 11 deletions examples/starknet-react-next/src/components/StarknetProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,7 @@ export function StarknetProvider({ children }: PropsWithChildren) {
);
}

const url =
!process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL ||
process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL.split(".")[0] ===
"cartridge-starknet-react-next"
? process.env.XFRAME_URL
: "https://" +
(process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL ?? "").replace(
"cartridge-starknet-react-next",
"keychain",
);

const url = "https://keychain-git-update-wasm.preview.cartridge.gg";
const connectors = [
new CartridgeConnector(
[
Expand Down
24 changes: 12 additions & 12 deletions packages/account-wasm/pkg/account_wasm_bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,16 @@ export function __wbindgen_string_get(arg0, arg1) {
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};

export function __wbindgen_cb_drop(arg0) {
const obj = takeObject(arg0).original;
if (obj.cnt-- == 1) {
obj.a = 0;
return true;
}
const ret = false;
return ret;
};

export function __wbindgen_is_bigint(arg0) {
const ret = typeof(getObject(arg0)) === 'bigint';
return ret;
Expand Down Expand Up @@ -474,16 +484,6 @@ export function __wbindgen_is_undefined(arg0) {
return ret;
};

export function __wbindgen_cb_drop(arg0) {
const obj = takeObject(arg0).original;
if (obj.cnt-- == 1) {
obj.a = 0;
return true;
}
const ret = false;
return ret;
};

export function __wbindgen_object_clone_ref(arg0) {
const ret = getObject(arg0);
return addHeapObject(ret);
Expand Down Expand Up @@ -970,8 +970,8 @@ export function __wbindgen_memory() {
return addHeapObject(ret);
};

export function __wbindgen_closure_wrapper1476(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 457, __wbg_adapter_48);
export function __wbindgen_closure_wrapper1479(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 463, __wbg_adapter_48);
return addHeapObject(ret);
};

Binary file modified packages/account-wasm/pkg/account_wasm_bg.wasm
Binary file not shown.

0 comments on commit 90609fc

Please sign in to comment.