@taquito/taquito 11.2.0-beta-RC.0 → 11.2.0

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.
@@ -242,9 +242,11 @@
242
242
  }
243
243
  }
244
244
  class ViewSimulationError extends Error {
245
- constructor(message, originalError) {
245
+ constructor(message, viewName, failWith, originalError) {
246
246
  super(message);
247
247
  this.message = message;
248
+ this.viewName = viewName;
249
+ this.failWith = failWith;
248
250
  this.originalError = originalError;
249
251
  this.name = 'ViewSimulationError';
250
252
  }
@@ -2799,11 +2801,11 @@
2799
2801
  catch (error) {
2800
2802
  const failWith = validateAndExtractFailwith(error);
2801
2803
  throw failWith
2802
- ? new ViewSimulationError(`The simulation of the on-chain view named ${this._smartContractViewSchema.viewName} failed with: ${JSON.stringify(failWith)}`, error)
2804
+ ? new ViewSimulationError(`The simulation of the on-chain view named ${this._smartContractViewSchema.viewName} failed with: ${JSON.stringify(failWith)}`, this._smartContractViewSchema.viewName, failWith, error)
2803
2805
  : error;
2804
2806
  }
2805
2807
  if (!storage.args) {
2806
- throw new ViewSimulationError(`View simulation failed with an invalid result: ${storage}`);
2808
+ throw new ViewSimulationError(`View simulation failed with an invalid result: ${storage}`, this._smartContractViewSchema.viewName);
2807
2809
  }
2808
2810
  return this._smartContractViewSchema.decodeViewResult(storage.args[0]);
2809
2811
  });
@@ -4229,8 +4231,8 @@
4229
4231
 
4230
4232
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
4231
4233
  const VERSION = {
4232
- "commitHash": "e03d983c780c7f96d8291ddd1251ea82f4581858",
4233
- "version": "11.2.0-beta-RC.0"
4234
+ "commitHash": "81f0a5b103f867f57fbe5d526315c375a3788346",
4235
+ "version": "11.2.0"
4234
4236
  };
4235
4237
 
4236
4238
  class ForgingMismatchError extends Error {