Skip to content

Commit fb6c9fe

Browse files
committed
feat(sudt): explorer service
1 parent 7cbb4e9 commit fb6c9fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/samples/sudt/src/bootstrap.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
import { config } from '@ckb-lumos/lumos'
1414
import { DataSource } from 'typeorm'
1515
import { AccountController } from './controllers/account.controller'
16+
import { ExplorerService } from './services/explorer.service'
1617

1718
const initiateDataSource = async () => {
1819
const dataSource = new DataSource({
@@ -68,7 +69,7 @@ export const bootstrap = async () => {
6869

6970
// init kuai io
7071
const cor = new CoR()
71-
const sudtController = new SudtController(dataSource)
72+
const sudtController = new SudtController(dataSource, new ExplorerService())
7273
const accountController = new AccountController(dataSource)
7374
cor.use(sudtController.middleware())
7475
cor.use(accountController.middleware())

0 commit comments

Comments
 (0)