Skip to content

Commit

Permalink
fix: remove cell deps leave null dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
zmcNotafraid committed Dec 11, 2020
1 parent 157dcca commit bc4fc03
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/app/src/tx/service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import fs from 'fs'
import path from 'path'
import { dialog } from 'electron'
import { Channel, KeyperingAgency } from '@keypering/specs'
import CKB from '@nervosnetwork/ckb-sdk-core'
import RequestWindow from './RequestWindow'
Expand Down Expand Up @@ -99,13 +98,6 @@ export const requestSignTx = async (params: {
throw new Error('Transaction is not found in parameter')
}

if (params.tx?.cellDeps?.length) {
dialog.showMessageBox({
type: 'warning',
title: 'Warning',
message: 'Please leave cell deps empty since Keypering provides them'
})
}
const dataToConfirm = await getTxProfile(params.tx, params.referer, params.description)
const { current } = getWalletIndex()
if (!current) {
Expand Down

0 comments on commit bc4fc03

Please sign in to comment.