Skip to content

Commit

Permalink
fixup! Split up zcash/piratechain bridgified methods
Browse files Browse the repository at this point in the history
  • Loading branch information
peachbits committed Sep 12, 2023
1 parent c44756c commit be12965
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/piratechain/PiratechainEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {

import { CurrencyEngine } from '../common/CurrencyEngine'
import { PluginEnvironment } from '../common/innerPlugin'
import { upgradeMemos } from '../common/upgradeMemos'
import { cleanTxLogs } from '../common/utils'
import { PiratechainTools } from './PiratechainTools'
import {
Expand Down Expand Up @@ -311,6 +312,7 @@ export class PiratechainEngine extends CurrencyEngine<
}

async makeSpend(edgeSpendInfoIn: EdgeSpendInfo): Promise<EdgeTransaction> {
edgeSpendInfoIn = upgradeMemos(edgeSpendInfoIn, this.currencyInfo)
if (!this.isSynced()) throw new Error('Cannot spend until wallet is synced')
const { edgeSpendInfo, currencyCode } = this.makeSpendCheck(edgeSpendInfoIn)
const { memos = [] } = edgeSpendInfo
Expand Down

0 comments on commit be12965

Please sign in to comment.