Skip to content

Commit

Permalink
chore: ensure latest view on vbank entries
Browse files Browse the repository at this point in the history
- in the testing environment, we might see multiple USDC entries in `vbankAsset`. This change ensures the
  `byName` record contains the values needed for the test, reliant on the consistent ordering currently
  present in `vbankAsset` entries
  • Loading branch information
0xpatrickdev committed Dec 10, 2024
1 parent 7af5863 commit 93f404e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions multichain-testing/tools/e2e-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ export const provisionSmartWallet = async (
// TODO: skip this query if balances is {}
const vbankEntries = await q.queryData('published.agoricNames.vbankAsset');
const byName = Object.fromEntries(
vbankEntries.map(([denom, info]) => {
/// XXX better way to filter out old ATOM denom?
if (denom === 'ibc/toyatom') return [undefined, undefined];
// reverse entries, so we get the latest view on the denom since there are
// multiple entries in the testing environment
[...vbankEntries].reverse().map(([_, info]) => {
return [info.issuerName, info];
}),
);
Expand Down

0 comments on commit 93f404e

Please sign in to comment.