Skip to content

Commit

Permalink
fixup! fix: ensure e2e-tools are compatible with multichain-testing
Browse files Browse the repository at this point in the history
… package
  • Loading branch information
0xpatrickdev committed Jun 7, 2024
1 parent 48aff86 commit 75928b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions multichain-testing/tools/e2e-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ export const provisionSmartWallet = async (

/** @param {import('@agoric/smart-wallet/src/smartWallet.js').BridgeAction} bridgeAction */
const sendAction = async (bridgeAction) => {
// eslint-disable-next-line no-undef
const capData = q.toCapData(harden(bridgeAction));
const offerBody = JSON.stringify(capData);
const txInfo = await agd.tx(
Expand Down Expand Up @@ -268,6 +269,7 @@ export const provisionSmartWallet = async (
for await (const { balances: haystack } of cosmosBalanceUpdates()) {
for (const candidate of haystack) {
if (candidate.denom === denom) {
// eslint-disable-next-line no-undef
const amt = harden({ brand, value: BigInt(candidate.amount) });
yield amt;
}
Expand Down Expand Up @@ -534,6 +536,7 @@ export const makeE2ETools = async (
),
);
}
// eslint-disable-next-line no-undef
return harden(bundles);
};

Expand Down Expand Up @@ -642,6 +645,7 @@ export const seatLike = (updates) => {
throw reason;
}
})();
// eslint-disable-next-line no-undef
return harden({
getOfferResult: () => sync.result.promise,
getPayoutAmounts: () => sync.payouts.promise,
Expand Down
2 changes: 1 addition & 1 deletion multichain-testing/tools/marshalTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const makeTranslationTable = (makeSlot, makeVal) => {
slotToVal.set(slot, val);
return val;
};

// eslint-disable-next-line no-undef
return harden({ convertValToSlot, convertSlotToVal });
};

Expand Down

0 comments on commit 75928b7

Please sign in to comment.