From be61a43fe514bcb951903c33e088b130edfcebcf Mon Sep 17 00:00:00 2001 From: phamphong9981 Date: Tue, 1 Aug 2023 14:15:17 +0700 Subject: [PATCH] fix: idiot --- src/services/cw20/cw20_update_by_contract.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/cw20/cw20_update_by_contract.service.ts b/src/services/cw20/cw20_update_by_contract.service.ts index f4741a785..09c865863 100644 --- a/src/services/cw20/cw20_update_by_contract.service.ts +++ b/src/services/cw20/cw20_update_by_contract.service.ts @@ -78,7 +78,7 @@ export default class Cw20UpdateByContractService extends BullableService { const { startBlock, endBlock } = ctx.params; // eslint-disable-next-line no-restricted-syntax for (const cw20Contract of ctx.params.cw20Contracts) { - const startUpdateBlock = Math.min( + const startUpdateBlock = Math.max( startBlock, cw20Contract.last_updated_height );