starknet 10.7.2 → 10.7.4
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 +3 -1
- package/dist/index.global.js +13 -6
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8589,9 +8589,15 @@ function getHex(value) {
|
|
|
8589
8589
|
}
|
|
8590
8590
|
function validateTypedData(data) {
|
|
8591
8591
|
const typedData = data;
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8592
|
+
if (!(typedData.message && typedData.primaryType && typedData.types)) {
|
|
8593
|
+
return false;
|
|
8594
|
+
}
|
|
8595
|
+
const revision = identifyRevision(typedData);
|
|
8596
|
+
if (!revision) {
|
|
8597
|
+
return false;
|
|
8598
|
+
}
|
|
8599
|
+
const presetNames = Object.keys(revisionConfiguration[revision].presetTypes);
|
|
8600
|
+
return Object.keys(typedData.types).every((name) => !presetNames.includes(name));
|
|
8595
8601
|
}
|
|
8596
8602
|
function prepareSelector(selector) {
|
|
8597
8603
|
return isHex(selector) ? selector : getSelectorFromName(selector);
|
|
@@ -11684,9 +11690,10 @@ var Deployer = class {
|
|
|
11684
11690
|
const compiledConstructorCallData = getCompiledCalldata(constructorCalldata, () => {
|
|
11685
11691
|
if (abi) {
|
|
11686
11692
|
const calldataClass = new CallData(abi);
|
|
11687
|
-
|
|
11688
|
-
|
|
11689
|
-
|
|
11693
|
+
if (Array.isArray(constructorCalldata)) {
|
|
11694
|
+
calldataClass.validate(ValidateType.DEPLOY, "constructor", constructorCalldata);
|
|
11695
|
+
}
|
|
11696
|
+
return calldataClass.compile("constructor", constructorCalldata);
|
|
11690
11697
|
}
|
|
11691
11698
|
return CallData.compile(constructorCalldata);
|
|
11692
11699
|
});
|