Skip to content

Commit 41f1ba8

Browse files
committed
fix: unused seedTypeNode in context
1 parent 5fbe2b0 commit 41f1ba8

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

packages/dynamic-address-resolution/src/visitors/pda-seed-value.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,12 @@ type PdaSeedValueSupportedNodeKind = (typeof PDA_SEED_VALUE_SUPPORTED_NODE_KINDS
5858

5959
export type ConstantPdaSeedValueVisitorContext = {
6060
programId: Address;
61-
seedTypeNode?: TypeNode;
6261
};
6362

64-
export type PdaSeedValueVisitorContext = BaseResolutionContext & ConstantPdaSeedValueVisitorContext;
63+
export type PdaSeedValueVisitorContext = BaseResolutionContext &
64+
ConstantPdaSeedValueVisitorContext & {
65+
seedTypeNode?: TypeNode;
66+
};
6567

6668
/**
6769
* Visitor for resolving PdaSeedValueNode value to raw bytes.
@@ -77,7 +79,7 @@ export function createPdaSeedValueVisitor(
7779
const accountsInput = ctx.accountsInput ?? {};
7880
const argumentsInput = ctx.argumentsInput ?? {};
7981

80-
const base = createConstantPdaSeedValueVisitor({ programId, seedTypeNode });
82+
const base = createConstantPdaSeedValueVisitor({ programId });
8183

8284
const visitor: Visitor<Promise<ReadonlyUint8Array>, PdaSeedValueSupportedNodeKind> = extendVisitor(base, {
8385
visitAccountValue: async (node: AccountValueNode) => {

0 commit comments

Comments
 (0)