starknet 11.9.1 → 11.9.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 +6 -0
- package/dist/index.d.ts +25 -7
- package/dist/index.global.js +9 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18312,8 +18312,15 @@ var RpcProvider = class {
|
|
|
18312
18312
|
}
|
|
18313
18313
|
if (isSierra(contractClass)) {
|
|
18314
18314
|
if (compiler) {
|
|
18315
|
-
|
|
18316
|
-
|
|
18315
|
+
try {
|
|
18316
|
+
const program = contractClass.sierra_program;
|
|
18317
|
+
const firstFelt = BigInt(program[0]);
|
|
18318
|
+
if (firstFelt === utf8ToBigInt("0.1.0")) return { cairo: "1", compiler: "1" };
|
|
18319
|
+
const compilerMajor = BigInt(program[3]);
|
|
18320
|
+
if (firstFelt === 1n && compilerMajor === 1n) return { cairo: "1", compiler: "1" };
|
|
18321
|
+
if (firstFelt === 1n && compilerMajor === 2n) return { cairo: "1", compiler: "2" };
|
|
18322
|
+
} catch {
|
|
18323
|
+
}
|
|
18317
18324
|
}
|
|
18318
18325
|
return { cairo: "1", compiler: void 0 };
|
|
18319
18326
|
}
|