diff --git a/app/components/instruction/InstructionCard.tsx b/app/components/instruction/InstructionCard.tsx index f6ed7171..7adc2998 100644 --- a/app/components/instruction/InstructionCard.tsx +++ b/app/components/instruction/InstructionCard.tsx @@ -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]) ); diff --git a/app/components/instruction/lighthouse/LighthouseDetailsCard.tsx b/app/components/instruction/lighthouse/LighthouseDetailsCard.tsx index da0a0885..a29dfd03 100644 --- a/app/components/instruction/lighthouse/LighthouseDetailsCard.tsx +++ b/app/components/instruction/lighthouse/LighthouseDetailsCard.tsx @@ -22,7 +22,6 @@ import { parseMemoryWriteInstruction, IntegerOperator, EquatableOperator, - ParsedLighthouseInstruction, AccountInfoAssertion, TokenAccountAssertion, MintAccountAssertion, @@ -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 { @@ -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[0]) => { renderEnumsAsStrings(assertion); @@ -420,11 +417,7 @@ function mapIxArgsToRows(data: any, nestingLevel: number = 0) { } return ( - + {nestingLevel > 0 && (