Skip to content

Commit

Permalink
test: suppress empty assets at a better point
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Feb 11, 2025
1 parent ab93821 commit cc546bd
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ export const getAssetList = async labelList => {

// Determine the assets to consider based on labelList
const assetsToConsider =
labelList || Object.values(vbankAssets).map(asset => asset.issuerName);
labelList ||
Object.values(vbankAssets)
.map(asset => asset.issuerName)
.filter(name => name !== undefined); // testvbankAsset can be malformed.

for (const label of assetsToConsider) {
if (label === 'IST') {
Expand All @@ -63,11 +66,6 @@ export const mintPayment = async (t, address, assetList, value) => {
for (const asset of assetList) {
const { label, denom } = asset;

// XXX I don't know what asset shows up like this, but let's ignore it.
if (!label) {
console.log('MINT PAYMENT undef', asset);
continue;
}
const scaled = BigInt(parseInt(value, 10) * 1_000_000).toString();

await replaceTemplateValuesInFile(`${SUBMISSION_DIR}/send-script`, {
Expand Down

0 comments on commit cc546bd

Please sign in to comment.