@fuel-ts/account 0.0.0-rc-1936-20240325123930 → 0.0.0-rc-1936-20240325130222
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.global.js +2 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/providers/transaction-response/getDecodedLogs.d.ts +1 -1
- package/dist/providers/transaction-response/getDecodedLogs.d.ts.map +1 -1
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +16 -16
package/dist/index.js
CHANGED
@@ -3569,10 +3569,10 @@ var TransactionResponse = class {
|
|
3569
3569
|
// src/providers/transaction-response/getDecodedLogs.ts
|
3570
3570
|
var import_abi_coder3 = require("@fuel-ts/abi-coder");
|
3571
3571
|
var import_transactions16 = require("@fuel-ts/transactions");
|
3572
|
-
function getDecodedLogs(receipts,
|
3572
|
+
function getDecodedLogs(receipts, mainAbi, externalAbis = {}) {
|
3573
3573
|
return receipts.reduce((logs, receipt) => {
|
3574
3574
|
if (receipt.type === import_transactions16.ReceiptType.LogData || receipt.type === import_transactions16.ReceiptType.Log) {
|
3575
|
-
const interfaceToUse = externalAbis[receipt.id] ? new import_abi_coder3.Interface(externalAbis[receipt.id]) : new import_abi_coder3.Interface(
|
3575
|
+
const interfaceToUse = externalAbis[receipt.id] ? new import_abi_coder3.Interface(externalAbis[receipt.id]) : new import_abi_coder3.Interface(mainAbi);
|
3576
3576
|
const data = receipt.type === import_transactions16.ReceiptType.Log ? new import_abi_coder3.BigNumberCoder("u64").encode(receipt.val0) : receipt.data;
|
3577
3577
|
const [decodedLog] = interfaceToUse.decodeLog(data, receipt.val1.toNumber());
|
3578
3578
|
logs.push(decodedLog);
|