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/CHANGELOG.md +12 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.global.js +5 -4
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.mjs
CHANGED
|
@@ -3602,7 +3602,7 @@ var validateArray = (parameter, input, structs, enums) => {
|
|
|
3602
3602
|
case isTypeEnum(baseType, enums):
|
|
3603
3603
|
parameter.forEach((it) => validateEnum(it, { name: input.name, type: baseType }));
|
|
3604
3604
|
break;
|
|
3605
|
-
case isTypeUint(baseType):
|
|
3605
|
+
case (isTypeUint(baseType) || isTypeLitteral(baseType)):
|
|
3606
3606
|
parameter.forEach((param) => validateUint(param, input));
|
|
3607
3607
|
break;
|
|
3608
3608
|
case isTypeBool(baseType):
|
|
@@ -3629,8 +3629,6 @@ function validateFields(abiMethod, args, structs, enums) {
|
|
|
3629
3629
|
case isTypeBool(input.type):
|
|
3630
3630
|
validateBool(parameter, input);
|
|
3631
3631
|
break;
|
|
3632
|
-
case isTypeContractAddress(input.type):
|
|
3633
|
-
break;
|
|
3634
3632
|
case isTypeArray(input.type):
|
|
3635
3633
|
validateArray(parameter, input, structs, enums);
|
|
3636
3634
|
break;
|
|
@@ -3744,7 +3742,7 @@ var CallData = class {
|
|
|
3744
3742
|
*/
|
|
3745
3743
|
static compile(rawArgs) {
|
|
3746
3744
|
const createTree = (obj) => {
|
|
3747
|
-
const getEntries = (o, prefix = "") => {
|
|
3745
|
+
const getEntries = (o, prefix = ".") => {
|
|
3748
3746
|
const oe = Array.isArray(o) ? [o.length.toString(), ...o] : o;
|
|
3749
3747
|
return Object.entries(oe).flatMap(([k, v]) => {
|
|
3750
3748
|
let value = v;
|
|
@@ -6898,6 +6896,9 @@ var Contract = class {
|
|
|
6898
6896
|
isCairo1() {
|
|
6899
6897
|
return cairo_exports.isCairo1Abi(this.abi);
|
|
6900
6898
|
}
|
|
6899
|
+
typed(tAbi) {
|
|
6900
|
+
return this;
|
|
6901
|
+
}
|
|
6901
6902
|
};
|
|
6902
6903
|
|
|
6903
6904
|
// src/contract/interface.ts
|