starknet 5.19.0 → 5.19.2

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.js CHANGED
@@ -3698,7 +3698,7 @@ var validateArray = (parameter, input, structs, enums) => {
3698
3698
  case isTypeEnum(baseType, enums):
3699
3699
  parameter.forEach((it) => validateEnum(it, { name: input.name, type: baseType }));
3700
3700
  break;
3701
- case isTypeUint(baseType):
3701
+ case (isTypeUint(baseType) || isTypeLitteral(baseType)):
3702
3702
  parameter.forEach((param) => validateUint(param, input));
3703
3703
  break;
3704
3704
  case isTypeBool(baseType):
@@ -3725,8 +3725,6 @@ function validateFields(abiMethod, args, structs, enums) {
3725
3725
  case isTypeBool(input.type):
3726
3726
  validateBool(parameter, input);
3727
3727
  break;
3728
- case isTypeContractAddress(input.type):
3729
- break;
3730
3728
  case isTypeArray(input.type):
3731
3729
  validateArray(parameter, input, structs, enums);
3732
3730
  break;
@@ -3840,7 +3838,7 @@ var CallData = class {
3840
3838
  */
3841
3839
  static compile(rawArgs) {
3842
3840
  const createTree = (obj) => {
3843
- const getEntries = (o, prefix = "") => {
3841
+ const getEntries = (o, prefix = ".") => {
3844
3842
  const oe = Array.isArray(o) ? [o.length.toString(), ...o] : o;
3845
3843
  return Object.entries(oe).flatMap(([k, v]) => {
3846
3844
  let value = v;
@@ -6994,6 +6992,9 @@ var Contract = class {
6994
6992
  isCairo1() {
6995
6993
  return cairo_exports.isCairo1Abi(this.abi);
6996
6994
  }
6995
+ typed(tAbi) {
6996
+ return this;
6997
+ }
6997
6998
  };
6998
6999
 
6999
7000
  // src/contract/interface.ts