Skip to content

Commit

Permalink
feat(sudt): explorer service
Browse files Browse the repository at this point in the history
  • Loading branch information
Daryl-L committed Oct 25, 2023
1 parent 7cbb4e9 commit fb6c9fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/samples/sudt/src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit fb6c9fe

Please sign in to comment.