From 0c3b3bc7d36a3a6bb9168b8901b66cc2b57837e0 Mon Sep 17 00:00:00 2001 From: daryl Date: Wed, 25 Oct 2023 11:20:41 +0800 Subject: [PATCH] feat(sudt): explorer service --- packages/samples/sudt/src/bootstrap.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/samples/sudt/src/bootstrap.ts b/packages/samples/sudt/src/bootstrap.ts index 91bf0eac..5e1d7254 100644 --- a/packages/samples/sudt/src/bootstrap.ts +++ b/packages/samples/sudt/src/bootstrap.ts @@ -13,6 +13,7 @@ import { import { config } from '@ckb-lumos/lumos' import { DataSource } from 'typeorm' import { AccountController } from './controllers/account.controller' +import { ExplorerService } from './services/explorer.service' const initiateDataSource = async () => { const dataSource = new DataSource({ @@ -68,7 +69,7 @@ export const bootstrap = async () => { // init kuai io const cor = new CoR() - const sudtController = new SudtController(dataSource) + const sudtController = new SudtController(dataSource, new ExplorerService()) const accountController = new AccountController(dataSource) cor.use(sudtController.middleware()) cor.use(accountController.middleware())