Skip to content

Commit 6b3623b

Browse files
committed
adjusting helper params to avoid breaking change
1 parent 24f10f9 commit 6b3623b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/account/src/providers/utils/extract-tx-error.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,10 @@ function findErrorInAbis(statusReason: string, abis: JsonAbi[] = []): JsonAbiErr
158158
* @returns The error message.
159159
*/
160160
export const assembleRevertError = (
161-
statusReason: string,
161+
_receipts: Array<TransactionResultReceipt>,
162162
logs: Array<unknown>,
163163
metadata: Record<string, unknown>,
164+
statusReason: string,
164165
abis?: JsonAbisFromAllCalls
165166
): FuelError => {
166167
const match = statusReason.match(/Revert\((\d+)\)/);
@@ -220,5 +221,5 @@ export const extractTxError = (params: IExtractTxError): FuelError => {
220221
if (isPanic) {
221222
return assemblePanicError(statusReason, metadata);
222223
}
223-
return assembleRevertError(statusReason, logs, metadata, abis);
224+
return assembleRevertError(receipts, logs, metadata, statusReason, abis);
224225
};

0 commit comments

Comments
 (0)