Skip to content

Commit fe8a5df

Browse files
authored
fix: Add missing PDA seed constants to resolve build error
- Add AGENT_REGISTRY_PDA_SEED and MCP_SERVER_REGISTRY_PDA_SEED exports - Fix TypeScript build error in lib/solana/utils.ts - Ensure constants match Rust program definitions
1 parent ac75a08 commit fe8a5df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

frontend/lib/constants.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ export const MCP_SERVER_REGISTRY_PROGRAM_ID = new PublicKey(
1313
process.env.NEXT_PUBLIC_MCP_PROGRAM_ID || '11111111111111111111111111111111'
1414
);
1515

16+
17+
// PDA Seeds (must match Rust program constants)
18+
export const AGENT_REGISTRY_PDA_SEED = 'agent_reg_v1';
19+
export const MCP_SERVER_REGISTRY_PDA_SEED = 'mcp_srv_reg_v1';
20+
1621
// $SVMAI Token Configuration
1722
export const SVMAI_TOKEN_MINT = new PublicKey('Cpzvdx6pppc9TNArsGsqgShCsKC9NCCjA2gtzHvUpump');
1823
export const SVMAI_TOKEN_DECIMALS = 6; // Standard SPL token decimals

0 commit comments

Comments
 (0)