Skip to content

Commit

Permalink
fix: findVat for dynamic vats
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Nov 30, 2023
1 parent 633c1a1 commit 124a883
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upgrade-test-scripts/lib/vat-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const makeSwingstore = db => {
findVat: vatName => {
/** @type {string[]} */
const dynamicIDs = kvGetJSON('vat.dynamicIDs');
const targetVat = dynamicIDs.find(
vatID => lookupVat(vatID).options().name === vatName,
const targetVat = dynamicIDs.find(vatID =>
lookupVat(vatID).options().name.includes(vatName),
);
if (!targetVat) throw Error(vatName);
return targetVat;
Expand Down

0 comments on commit 124a883

Please sign in to comment.