@fuel-ts/account 0.0.0-rc-1936-20240325123930 → 0.0.0-rc-1936-20240325124311

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @fuel-ts/account might be problematic. Click here for more details.

package/dist/index.mjs CHANGED
@@ -3433,10 +3433,10 @@ var TransactionResponse = class {
3433
3433
  // src/providers/transaction-response/getDecodedLogs.ts
3434
3434
  import { Interface as Interface3, BigNumberCoder } from "@fuel-ts/abi-coder";
3435
3435
  import { ReceiptType as ReceiptType5 } from "@fuel-ts/transactions";
3436
- function getDecodedLogs(receipts, mainAbiInterface, externalAbis = {}) {
3436
+ function getDecodedLogs(receipts, mainAbi, externalAbis = {}) {
3437
3437
  return receipts.reduce((logs, receipt) => {
3438
3438
  if (receipt.type === ReceiptType5.LogData || receipt.type === ReceiptType5.Log) {
3439
- const interfaceToUse = externalAbis[receipt.id] ? new Interface3(externalAbis[receipt.id]) : new Interface3(mainAbiInterface);
3439
+ const interfaceToUse = externalAbis[receipt.id] ? new Interface3(externalAbis[receipt.id]) : new Interface3(mainAbi);
3440
3440
  const data = receipt.type === ReceiptType5.Log ? new BigNumberCoder("u64").encode(receipt.val0) : receipt.data;
3441
3441
  const [decodedLog] = interfaceToUse.decodeLog(data, receipt.val1.toNumber());
3442
3442
  logs.push(decodedLog);