Skip to content

Commit

Permalink
fix: array handling in get_valid_src20_deploy_by_tick_with_client
Browse files Browse the repository at this point in the history
  • Loading branch information
reinamora137 committed Apr 18, 2024
1 parent 77b14b8 commit 905564f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ export interface TxHandlerContext extends HandlerContext {
export interface TickHandlerContext extends HandlerContext {
params: {
tick: string | number;
op?: string; // future use for mint/transfer deploy is defined in routes
};
}

Expand Down
3 changes: 2 additions & 1 deletion lib/database/src20Class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,8 @@ export class Src20Class {
client: Client,
ticks: string[],
) {
const tickPlaceholders = ticks.map(() => "?").join(",");
const ticksArray = typeof ticks === "string" ? [ticks] : ticks;
const tickPlaceholders = ticksArray.map(() => "?").join(",");
return await handleSqlQueryWithCache(
client,
`
Expand Down

0 comments on commit 905564f

Please sign in to comment.