Skip to content

Commit

Permalink
removes unnesecary assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
aristidesstaffieri committed Aug 19, 2024
1 parent 77864a2 commit 5c80dfa
Show file tree
Hide file tree
Showing 2 changed files with 921 additions and 1,105 deletions.
15 changes: 3 additions & 12 deletions extension/src/popup/views/ReviewAuth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ import { truncateString } from "helpers/stellar";
import { emitMetric } from "helpers/metrics";
import { FlaggedKeys } from "types/transactions";
import {
FnArgsCreateSac,
FnArgsCreateWasm,
FnArgsInvoke,
buildInvocationTree,
formatTokenAmount,
getInvocationDetails,
Expand Down Expand Up @@ -338,15 +335,9 @@ const AuthDetail = ({
const { t } = useTranslation();
const rootInvocation = authEntry.rootInvocation();
const details = getInvocationDetails(rootInvocation);
const invocations = details.filter(
(detail) => detail.type === "invoke",
) as FnArgsInvoke[];
const createWasms = details.filter(
(detail) => detail.type === "wasm",
) as FnArgsCreateWasm[];
const createSacs = details.filter(
(detail) => detail.type === "sac",
) as FnArgsCreateSac[];
const invocations = details.filter((detail) => detail.type === "invoke");
const createWasms = details.filter((detail) => detail.type === "wasm");
const createSacs = details.filter((detail) => detail.type === "sac");

const rootJson = buildInvocationTree(rootInvocation);
const isInvokeContract = rootInvocation.function().switch().value === 0;
Expand Down
Loading

0 comments on commit 5c80dfa

Please sign in to comment.