@algorandfoundation/algokit-utils 9.1.1-beta.2 → 9.1.1-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1120,6 +1120,8 @@ class AppClient {
1120
1120
  getValue: async (name, appState) => {
1121
1121
  const state = Object.values(appState ?? (await stateGetter()));
1122
1122
  const metadata = keyGetter()[name];
1123
+ if (metadata === undefined)
1124
+ throw new Error(`Attempted to get state value ${name}, but it does not exist`);
1123
1125
  const value = state.find((s) => s.keyBase64 === metadata.key);
1124
1126
  if (value && 'valueRaw' in value) {
1125
1127
  return getABIDecodedValue(value.valueRaw, metadata.valueType, that._appSpec.structs);