Skip to content

Commit

Permalink
remove unused functions and logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ngundotra committed Dec 30, 2024
1 parent 0161093 commit 1cb41fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions app/components/instruction/InstructionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function InstructionCard({

return setShowRaw(r => !r);
};
// Need to wrap this in a useEffect to avoid hydration errors
const scrollAnchorRef = useScrollAnchor(
getInstructionCardScrollAnchorId(childIndex != null ? [index + 1, childIndex + 1] : [index + 1])
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
parseMemoryWriteInstruction,
IntegerOperator,
EquatableOperator,
ParsedLighthouseInstruction,
AccountInfoAssertion,
TokenAccountAssertion,
MintAccountAssertion,
Expand All @@ -40,7 +39,6 @@ import { LIGHTHOUSE_ADDRESS } from './types';
import { camelToTitleCase } from '@/app/utils';
import { ExpandableRow } from '@/app/utils/anchor';
import { AccountDataAssertion } from 'lighthouse-sdk/dist/types/hooked';
import { assert } from 'console';
import { CornerDownRight } from 'react-feather';

function upcastTransactionInstruction(ix: TransactionInstruction): IInstruction {
Expand Down Expand Up @@ -91,7 +89,6 @@ function parseLighthouseInstruction(ix: IInstruction) {
let title = 'Unknown';
let info: ParsedCodamaInstruction;
const subEnum = (pix: ParsedCodamaInstruction, key: string, array: boolean = false) => {
console.log(pix.data, key, array);
if (array) {
pix.data[key].forEach((assertion: Parameters<typeof renderEnumsAsStrings>[0]) => {
renderEnumsAsStrings(assertion);
Expand Down Expand Up @@ -420,11 +417,7 @@ function mapIxArgsToRows(data: any, nestingLevel: number = 0) {
}

return (
<tr
// style={{
// ...(nestingLevel === 0 ? {} : { backgroundColor: '#141816' }),
// }}
>
<tr>
<td className="d-flex flex-row">
{nestingLevel > 0 && (
<span style={{ paddingLeft: `${15 * nestingLevel}px` }}>
Expand Down

0 comments on commit 1cb41fd

Please sign in to comment.