Skip to content

Commit

Permalink
refactor: Remove signRawTx page of ckb demo
Browse files Browse the repository at this point in the history
  • Loading branch information
duanyytop committed Jul 3, 2024
1 parent edf875c commit e72b6d4
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 370 deletions.
1 change: 0 additions & 1 deletion examples/ckb-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"@joyid/ckb": "workspace:*",
"@nervina-labs/ckb-dex": "0.1.6",
"axios": "^1.6.0",
"ckb-omiga": "^0.0.12",
"cross-fetch": "^3.1.5",
"framer-motion": "^7.6.1",
"i18next": "^22.0.1",
Expand Down
8 changes: 0 additions & 8 deletions examples/ckb-demo/src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,6 @@ export const Home = () => {
}}>
Transfer CoTA NFT
</Button>
<Button
colorScheme="teal"
w="240px"
onClick={() => {
navi(RoutePath.SignCkbRawTx)
}}>
Sign CKB Raw Tx
</Button>
<Button
colorScheme="teal"
w="240px"
Expand Down
266 changes: 0 additions & 266 deletions examples/ckb-demo/src/pages/SignCkbRawTx/index.tsx

This file was deleted.

1 change: 0 additions & 1 deletion examples/ckb-demo/src/route/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ export enum RoutePath {
SignMessage = '/sign-message',
CKBTransfer = '/ckb-transfer',
CotaNFTTransfer = '/cota-nft-transfer',
SignCkbRawTx = '/sign-ckb-raw-tx',
}
5 changes: 0 additions & 5 deletions examples/ckb-demo/src/route/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { SignMessage } from '../pages/SignMessage'
import { SignTransaction } from '../pages/SignTransaction'
import { RoutePath } from './path'
import { SignCotaNFT } from '../pages/SignCotaNFT'
import { SignCkbRawTx } from '../pages/SignCkbRawTx'

export const routers: RouteObject[] = [
{
Expand Down Expand Up @@ -34,10 +33,6 @@ export const routers: RouteObject[] = [
path: RoutePath.CotaNFTTransfer,
element: <SignCotaNFT />,
},
{
path: RoutePath.SignCkbRawTx,
element: <SignCkbRawTx />,
},
],
},
]
2 changes: 1 addition & 1 deletion packages/ckb/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
append0x,
remove0x,
} from '@joyid/common'
import ckbUtils from '@nervosnetwork/ckb-sdk-utils'
import * as ckbUtils from '@nervosnetwork/ckb-sdk-utils'
import { Aggregator } from './aggregator'

export * from './verify'
Expand Down
Loading

0 comments on commit e72b6d4

Please sign in to comment.