From 7698a58d43ef4cdec6e7252635e111d1c4b8675f Mon Sep 17 00:00:00 2001 From: Prit Sheth Date: Fri, 17 May 2024 13:57:43 -0700 Subject: [PATCH] Fix tests --- src/rpc/api.ts | 2 +- src/rpc/parsers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc/api.ts b/src/rpc/api.ts index f9dabc306..cbfb8e442 100644 --- a/src/rpc/api.ts +++ b/src/rpc/api.ts @@ -1,4 +1,4 @@ -import { AssetType, Contract, SorobanDataBuilder, xdr } from '@stellar/stellar-base'; +import { Contract, SorobanDataBuilder, xdr } from '@stellar/stellar-base'; /* tslint:disable-next-line:no-namespace */ /** @namespace Api */ diff --git a/src/rpc/parsers.ts b/src/rpc/parsers.ts index 1838556ab..16be6fa71 100644 --- a/src/rpc/parsers.ts +++ b/src/rpc/parsers.ts @@ -142,7 +142,7 @@ function parseSuccessful( }), stateChanges: sim.stateChanges?.length ?? 0 > 0 - ? sim.stateChanges.map((entryChange) => { + ? sim.stateChanges?.map((entryChange) => { return { type: entryChange.type, key: xdr.LedgerKey.fromXDR(entryChange.key, 'base64'),