From f7560ec7163fd3ad50a123b32ddf4f3e91e4065b Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Tue, 9 Jan 2024 18:28:46 -0700 Subject: [PATCH] chore(query): add height as a query param that should be casted to a number --- src/routes/contract.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/contract.ts b/src/routes/contract.ts index 6cf43d3..988de58 100644 --- a/src/routes/contract.ts +++ b/src/routes/contract.ts @@ -474,7 +474,7 @@ export async function contractReservedHandler(ctx: KoaContext) { ctx.body = response; } -const queryParamsCastedToNumbers = ['qty', 'years']; +const queryParamsCastedToNumbers = ['qty', 'years', 'height']; export async function contractReadInteractionHandler(ctx: KoaContext) { const { warp, logger: _logger } = ctx.state; const { contractTxId, functionName } = ctx.params;