Skip to content

Commit 52f0efb

Browse files
Merge pull request #492 from multiversx/legacy-results-parser-1
Legacy ResultsParser: change access modifier of methods from private to protected
2 parents 04b3b4b + ea54e78 commit 52f0efb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/smartcontracts/resultsParser.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class ResultsParser {
196196
throw new ErrCannotParseContractResults(`transaction ${transaction.hash.toString()}`);
197197
}
198198

199-
private parseTransactionMetadata(transaction: ITransactionOnNetwork): TransactionMetadata {
199+
protected parseTransactionMetadata(transaction: ITransactionOnNetwork): TransactionMetadata {
200200
return new TransactionDecoder().getTransactionMetadata({
201201
sender: transaction.sender.bech32(),
202202
receiver: transaction.receiver.bech32(),
@@ -205,7 +205,7 @@ export class ResultsParser {
205205
});
206206
}
207207

208-
private createBundleOnSimpleMoveBalance(transaction: ITransactionOnNetwork): UntypedOutcomeBundle | null {
208+
protected createBundleOnSimpleMoveBalance(transaction: ITransactionOnNetwork): UntypedOutcomeBundle | null {
209209
let noResults = transaction.contractResults.items.length == 0;
210210
let noLogs = transaction.logs.events.length == 0;
211211

@@ -220,7 +220,7 @@ export class ResultsParser {
220220
return null;
221221
}
222222

223-
private createBundleOnInvalidTransaction(transaction: ITransactionOnNetwork): UntypedOutcomeBundle | null {
223+
protected createBundleOnInvalidTransaction(transaction: ITransactionOnNetwork): UntypedOutcomeBundle | null {
224224
if (transaction.status.isInvalid()) {
225225
if (transaction.receipt.data) {
226226
return {
@@ -236,7 +236,7 @@ export class ResultsParser {
236236
return null;
237237
}
238238

239-
private createBundleOnEasilyFoundResultWithReturnData(results: IContractResults): UntypedOutcomeBundle | null {
239+
protected createBundleOnEasilyFoundResultWithReturnData(results: IContractResults): UntypedOutcomeBundle | null {
240240
let resultItemWithReturnData = results.items.find(
241241
(item) => item.nonce.valueOf() != 0 && item.data.startsWith("@"),
242242
);
@@ -254,7 +254,7 @@ export class ResultsParser {
254254
};
255255
}
256256

257-
private createBundleOnSignalError(logs: ITransactionLogs): UntypedOutcomeBundle | null {
257+
protected createBundleOnSignalError(logs: ITransactionLogs): UntypedOutcomeBundle | null {
258258
let eventSignalError = logs.findSingleOrNoneEvent(WellKnownEvents.OnSignalError);
259259
if (!eventSignalError) {
260260
return null;
@@ -271,7 +271,7 @@ export class ResultsParser {
271271
};
272272
}
273273

274-
private createBundleOnTooMuchGasWarning(logs: ITransactionLogs): UntypedOutcomeBundle | null {
274+
protected createBundleOnTooMuchGasWarning(logs: ITransactionLogs): UntypedOutcomeBundle | null {
275275
let eventTooMuchGas = logs.findSingleOrNoneEvent(
276276
WellKnownEvents.OnWriteLog,
277277
(event) =>
@@ -294,7 +294,7 @@ export class ResultsParser {
294294
};
295295
}
296296

297-
private createBundleOnWriteLogWhereFirstTopicEqualsAddress(
297+
protected createBundleOnWriteLogWhereFirstTopicEqualsAddress(
298298
logs: ITransactionLogs,
299299
address: IAddress,
300300
): UntypedOutcomeBundle | null {
@@ -329,7 +329,7 @@ export class ResultsParser {
329329
return null;
330330
}
331331

332-
private createBundleWithFallbackHeuristics(
332+
protected createBundleWithFallbackHeuristics(
333333
transaction: ITransactionOnNetwork,
334334
transactionMetadata: TransactionMetadata,
335335
): UntypedOutcomeBundle | null {

0 commit comments

Comments
 (0)