From 124a883b4065d4358215170752b0be8f831fd34d Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Thu, 30 Nov 2023 14:16:30 -0800 Subject: [PATCH] fix: findVat for dynamic vats --- upgrade-test-scripts/lib/vat-status.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upgrade-test-scripts/lib/vat-status.js b/upgrade-test-scripts/lib/vat-status.js index 3a617e8c..f8eba24f 100644 --- a/upgrade-test-scripts/lib/vat-status.js +++ b/upgrade-test-scripts/lib/vat-status.js @@ -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;