starknet 11.6.0 → 11.6.1

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.
package/dist/index.mjs CHANGED
@@ -721,6 +721,11 @@ var CustomError = class extends Error {
721
721
  var LibraryError = class extends CustomError {
722
722
  };
723
723
  var RpcError = class extends LibraryError {
724
+ request;
725
+ // Declared after `request`, and not as a constructor parameter: fields are created in the
726
+ // order they are declared, so `JSON.stringify(error)` and `console.log(error)` list `request`
727
+ // first.
728
+ baseError;
724
729
  constructor(baseError, method, params) {
725
730
  super(`RPC: ${method} with params ${stringify2(params, null, 2)}
726
731
 
@@ -728,7 +733,6 @@ var RpcError = class extends LibraryError {
728
733
  this.baseError = baseError;
729
734
  this.request = { method, params };
730
735
  }
731
- request;
732
736
  get code() {
733
737
  return this.baseError.code;
734
738
  }