Skip to content

Commit

Permalink
bug/592: Provide MASP Params as local asset (#1157)
Browse files Browse the repository at this point in the history
* fix: provide masp params as local asset

* fix: revert file
  • Loading branch information
jurevans authored Oct 4, 2024
1 parent 4bb9145 commit 55b9410
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
Binary file added apps/namadillo/public/params/masp-convert.params
Binary file not shown.
Binary file added apps/namadillo/public/params/masp-output.params
Binary file not shown.
Binary file added apps/namadillo/public/params/masp-spend.params
Binary file not shown.
6 changes: 1 addition & 5 deletions apps/namadillo/src/hooks/useSdk.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
useEffect,
useState,
} from "react";
import Proxies from "../../scripts/proxies.json";

type SdkContext = {
sdk?: Sdk;
Expand All @@ -24,10 +23,7 @@ export const SdkContext = createContext<SdkContext>({
maspParamsStatus: "pending",
});

const { VITE_PROXY: isProxied } = import.meta.env;

const paramsUrl =
isProxied ? `http://localhost:${Proxies[0].proxyPort}/proxy/` : undefined;
const paramsUrl = "/params/";

const initializeSdk = async (): Promise<Sdk> => {
const { cryptoMemory } = await initSdk();
Expand Down

1 comment on commit 55b9410

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.