Skip to content

Commit

Permalink
fix: disable making cheque transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
katat committed Feb 1, 2021
1 parent 3f6c988 commit bf9c9d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/neuron-wallet/src/controllers/asset-account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,11 @@ export default class AssetAccountController {

public async generateCreateChequeTx(params: GenerateCreateChequeTxParams):
Promise<Controller.Response<Transaction>> {

if (NetworksService.getInstance().isMainnet()) {
throw new Error('Cheque transfer is not supported on mainnet yet')
}

const tx = await AssetAccountService.generateCreateChequeTx(
params.walletID,
params.assetAccountID,
Expand Down

0 comments on commit bf9c9d5

Please sign in to comment.