Skip to content

Commit

Permalink
services/perun/service-runner: Setup node service with new api (quick…
Browse files Browse the repository at this point in the history
…-fix)
  • Loading branch information
janbormet committed Dec 12, 2023
1 parent 0825bb3 commit 711b868
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/neuron-wallet/src/services/perun/service-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import CellsService from '../../services/cells'
import OutPoint from '../../models/chain/out-point'
import RpcService from '../../services/rpc-service'
import { TransactionsService } from '../tx'
import NodeService from '../node'
import NetworksService from '../networks'

// Architecture overview:
//
Expand Down Expand Up @@ -257,7 +257,8 @@ export class PerunServiceRunner {
let sdkTx = JSON.parse(req.transaction as any, snakeCaseToCamelCase)
// Fetch live cells from txs input-outpoints.
let resolvedInputs = []
const rpcService = new RpcService(NodeService.getInstance().nodeUrl)
const network = NetworksService.getInstance().getCurrent()
const rpcService = new RpcService(network.remote, network.type)
for (const [idx, input] of sdkTx.inputs.entries()) {
let typedInput = input as { previousOutput: { txHash: string; index: string }; since: string }
logger.info('Fetching live cell', input.previousOutput)
Expand Down

0 comments on commit 711b868

Please sign in to comment.