Skip to content

Commit

Permalink
fixup! Break out piratechain into its own implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
peachbits committed Sep 4, 2023
1 parent 8a0febf commit 519b39a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/piratechain/PiratechainEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { abs, add, eq, gt, lte, sub } from 'biggystring'
import {
EdgeCurrencyEngine,
EdgeCurrencyEngineOptions,
EdgeCurrencyTools,
EdgeEnginePrivateKeyOptions,
EdgeSpendInfo,
EdgeTransaction,
Expand Down Expand Up @@ -411,12 +410,9 @@ export class PiratechainEngine extends CurrencyEngine<
return this.walletInfo.keys.unifiedViewingKeys?.extfvk ?? ''
}

async loadEngine(
plugin: EdgeCurrencyTools,
walletInfo: SafePiratechainWalletInfo,
opts: EdgeCurrencyEngineOptions
): Promise<void> {
await super.loadEngine(plugin, walletInfo, opts)
async loadEngine(): Promise<void> {
const { walletInfo } = this
await super.loadEngine()
this.engineOn = true

const { rpcNode } = this.networkInfo
Expand Down Expand Up @@ -447,7 +443,7 @@ export async function makeCurrencyEngine(
)

// Do any async initialization necessary for the engine
await engine.loadEngine(tools, safeWalletInfo, opts)
await engine.loadEngine()

return engine
}

0 comments on commit 519b39a

Please sign in to comment.