Skip to content

Commit 0e24630

Browse files
committed
fix(integrations): type the polymarket activity test params
1 parent 12737b8 commit 0e24630

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/sim/blocks/blocks/polymarket.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import { polymarketGetActivityTool } from '@/tools/polymarket/get_activity'
55
/** The Get Activity request URL the canvas sends for the stored block values. */
66
function activityUrl(stored: Record<string, unknown>): URL {
77
const inputs = { operation: 'get_activity', activityUser: '0xabc', ...stored }
8-
const params = { ...inputs, ...PolymarketBlock.tools.config?.params?.(inputs) }
8+
const mapped = PolymarketBlock.tools.config?.params?.(inputs) ?? {}
99
const url = polymarketGetActivityTool.request.url
1010
if (typeof url !== 'function') throw new Error('Missing activity URL builder')
11-
return new URL(url(params as Parameters<typeof url>[0]))
11+
return new URL(url({ user: '0xabc', ...mapped }))
1212
}
1313

1414
describe('Polymarket Get Activity start and end', () => {

0 commit comments

Comments
 (0)