Skip to content

Commit

Permalink
Fix merge issues (#137)
Browse files Browse the repository at this point in the history
* feat: standardize network config options as functions under network

* fix: duplicate imports
  • Loading branch information
fazzatti authored Apr 25, 2024
1 parent 158165a commit 5bf176a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/stellar-plus/core/contract-engine/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ const contractCodeMissingLiveUntilLedgerSeq = (
})
}


const contractEngineClassFailedToInitialize = (): StellarPlusError => {
return new StellarPlusError({
code: ContractEngineErrorCodes.CE009,
Expand Down
1 change: 0 additions & 1 deletion src/stellar-plus/core/contract-engine/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export class ContractEngine {
this.wasm = contractParameters.wasm
this.wasmHash = contractParameters.wasmHash


this.options = { ...options }

this.sorobanTransactionPipeline = new SorobanTransactionPipeline(networkConfig, {
Expand Down
3 changes: 0 additions & 3 deletions src/stellar-plus/core/contract-engine/index.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { SorobanInvokeArgs } from './types'
import { ContractEngine } from '../contract-engine'
import { ContractIdOutput, ContractWasmHashOutput } from '../pipelines/soroban-get-transaction/types'


jest.mock('stellar-plus/core/pipelines/soroban-transaction', () => ({
SorobanTransactionPipeline: jest.fn(),
}))
Expand Down Expand Up @@ -94,7 +93,6 @@ describe('ContractEngine', () => {
})

describe('Initialization Errors', () => {

it('should throw error if wasm file is required but is not present', async () => {
const contractEngine = new ContractEngine({
networkConfig: NETWORK_CONFIG,
Expand Down Expand Up @@ -261,7 +259,6 @@ describe('ContractEngine', () => {
getLedgerEntries: jest.fn().mockResolvedValue({
entries: [
{

// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment

key: Object.assign(xdr.LedgerKey.contractCode(MOCKED_CONTRACT_CODE_KEY)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { RpcHandler } from 'stellar-plus/rpc/types'
import { ConveyorBelt } from 'stellar-plus/utils/pipeline/conveyor-belts'

import { PSUError } from './errors'
import { HorizonHandlerClient } from 'stellar-plus/horizon'

export class SubmitTransactionPipeline extends ConveyorBelt<
SubmitTransactionPipelineInput,
Expand Down

0 comments on commit 5bf176a

Please sign in to comment.