diff --git a/apps/namadillo/src/App/WorkerTest.tsx b/apps/namadillo/src/App/WorkerTest.tsx index cdb0a6248..f7a3123d9 100644 --- a/apps/namadillo/src/App/WorkerTest.tsx +++ b/apps/namadillo/src/App/WorkerTest.tsx @@ -143,10 +143,6 @@ export function WorkerTest(): JSX.Element { ], }); - const vks = accounts - ?.filter((acc) => acc.type === "shielded-keys") - .map((a) => a.viewingKey!); - const disposableSigner = (await refetch()).data; const msg: Unshield = { @@ -163,7 +159,6 @@ export function WorkerTest(): JSX.Element { }, unshieldingProps: [shieldingMsgValue], chain: chain!, - vks: vks!, }, }; @@ -208,10 +203,6 @@ export function WorkerTest(): JSX.Element { ], }); - const vks = accounts - ?.filter((acc) => acc.type === "shielded-keys") - .map((a) => a.viewingKey!); - const disposableSigner = (await refetch()).data; const msg: ShieldedTransfer = { @@ -228,7 +219,6 @@ export function WorkerTest(): JSX.Element { }, props: [shieldingMsgValue], chain: chain!, - vks: vks!, }, }; diff --git a/apps/namadillo/src/atoms/shield/services.ts b/apps/namadillo/src/atoms/shield/services.ts index 8d82d6aa7..371cd22b4 100644 --- a/apps/namadillo/src/atoms/shield/services.ts +++ b/apps/namadillo/src/atoms/shield/services.ts @@ -141,7 +141,6 @@ export const submitUnshieldTx = async ( gasConfig, unshieldingProps: [unshieldingMsgValue], chain, - vks: [], }, }; @@ -203,7 +202,6 @@ export const submitShieldedTx = async ( gasConfig, props: [shieldedTransferMsgValue], chain, - vks: [], }, }; diff --git a/apps/namadillo/src/workers/MaspTxMessages.ts b/apps/namadillo/src/workers/MaspTxMessages.ts index 4ce493838..d67d3a666 100644 --- a/apps/namadillo/src/workers/MaspTxMessages.ts +++ b/apps/namadillo/src/workers/MaspTxMessages.ts @@ -36,7 +36,6 @@ type UnshieldPayload = { gasConfig: GasConfig; unshieldingProps: UnshieldingTransferMsgValue[]; chain: ChainSettings; - vks: string[]; }; export type Unshield = WebWorkerMessage<"unshield", UnshieldPayload>; export type UnshieldDone = WebWorkerMessage< @@ -49,7 +48,6 @@ type ShieldedTransferPayload = { gasConfig: GasConfig; props: ShieldedTransferMsgValue[]; chain: ChainSettings; - vks: string[]; }; export type ShieldedTransfer = WebWorkerMessage< "shielded-transfer", diff --git a/apps/namadillo/src/workers/MaspTxWorker.ts b/apps/namadillo/src/workers/MaspTxWorker.ts index cbbbf5d43..dbc519961 100644 --- a/apps/namadillo/src/workers/MaspTxWorker.ts +++ b/apps/namadillo/src/workers/MaspTxWorker.ts @@ -103,9 +103,8 @@ async function unshield( sdk: Sdk, payload: Unshield["payload"] ): Promise> { - const { account, gasConfig, chain, unshieldingProps, vks } = payload; + const { account, gasConfig, chain, unshieldingProps } = payload; - await sdk.rpc.shieldedSync(vks); await sdk.masp.loadMaspParams(""); const encodedTxData = await buildTx( @@ -125,9 +124,8 @@ async function shieldedTransfer( sdk: Sdk, payload: ShieldedTransfer["payload"] ): Promise> { - const { account, gasConfig, chain, props, vks } = payload; + const { account, gasConfig, chain, props } = payload; - await sdk.rpc.shieldedSync(vks); await sdk.masp.loadMaspParams(""); const encodedTxData = await buildTx(