@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.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.global.js
CHANGED
@@ -41155,10 +41155,10 @@ ${MessageCoinFragmentFragmentDoc}`;
|
|
41155
41155
|
};
|
41156
41156
|
|
41157
41157
|
// src/providers/transaction-response/getDecodedLogs.ts
|
41158
|
-
function getDecodedLogs(receipts,
|
41158
|
+
function getDecodedLogs(receipts, mainAbi, externalAbis = {}) {
|
41159
41159
|
return receipts.reduce((logs, receipt) => {
|
41160
41160
|
if (receipt.type === ReceiptType.LogData || receipt.type === ReceiptType.Log) {
|
41161
|
-
const interfaceToUse = externalAbis[receipt.id] ? new Interface(externalAbis[receipt.id]) : new Interface(
|
41161
|
+
const interfaceToUse = externalAbis[receipt.id] ? new Interface(externalAbis[receipt.id]) : new Interface(mainAbi);
|
41162
41162
|
const data = receipt.type === ReceiptType.Log ? new BigNumberCoder("u64").encode(receipt.val0) : receipt.data;
|
41163
41163
|
const [decodedLog] = interfaceToUse.decodeLog(data, receipt.val1.toNumber());
|
41164
41164
|
logs.push(decodedLog);
|