From 519b39a1d08c3798ce7654257dee77548d24ca6a Mon Sep 17 00:00:00 2001 From: peachbits Date: Mon, 4 Sep 2023 15:43:09 -0700 Subject: [PATCH] fixup! Break out piratechain into its own implementation --- src/piratechain/PiratechainEngine.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/piratechain/PiratechainEngine.ts b/src/piratechain/PiratechainEngine.ts index 11908a1bc..098dad2b3 100644 --- a/src/piratechain/PiratechainEngine.ts +++ b/src/piratechain/PiratechainEngine.ts @@ -2,7 +2,6 @@ import { abs, add, eq, gt, lte, sub } from 'biggystring' import { EdgeCurrencyEngine, EdgeCurrencyEngineOptions, - EdgeCurrencyTools, EdgeEnginePrivateKeyOptions, EdgeSpendInfo, EdgeTransaction, @@ -411,12 +410,9 @@ export class PiratechainEngine extends CurrencyEngine< return this.walletInfo.keys.unifiedViewingKeys?.extfvk ?? '' } - async loadEngine( - plugin: EdgeCurrencyTools, - walletInfo: SafePiratechainWalletInfo, - opts: EdgeCurrencyEngineOptions - ): Promise { - await super.loadEngine(plugin, walletInfo, opts) + async loadEngine(): Promise { + const { walletInfo } = this + await super.loadEngine() this.engineOn = true const { rpcNode } = this.networkInfo @@ -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 }