From 12298463a38e4456cf9f05dcc03b240dedfcffa5 Mon Sep 17 00:00:00 2001 From: Dylan Duan Date: Tue, 7 Jan 2025 17:21:18 +0800 Subject: [PATCH] refactor: Remove redundent xudt checking --- src/routes/rgbpp/address.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/routes/rgbpp/address.ts b/src/routes/rgbpp/address.ts index 3ccb52e8..37b6a9cd 100644 --- a/src/routes/rgbpp/address.ts +++ b/src/routes/rgbpp/address.ts @@ -158,10 +158,6 @@ const addressRoutes: FastifyPluginCallback, Server, ZodType if (!typeScript || !isTypeAssetSupported(typeScript, IS_MAINNET)) { throw fastify.httpErrors.badRequest('Unsupported type asset'); } - const scripts = fastify.ckb.getScripts(); - if (!isScriptEqual({ ...typeScript, args: '' }, scripts.XUDT)) { - throw fastify.httpErrors.badRequest('Unsupported type asset'); - } const xudtBalances: Record = {}; const utxos = await getUtxos(btc_address, no_cache);