genlayer-js 0.19.4 → 0.19.5
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.cjs +15 -1
- package/dist/index.js +15 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -788,14 +788,28 @@ var _encodeSubmitAppealData = ({
|
|
|
788
788
|
});
|
|
789
789
|
};
|
|
790
790
|
var isAddTransactionAbiMismatchError = (error) => {
|
|
791
|
+
const seen = /* @__PURE__ */ new WeakSet();
|
|
792
|
+
const serializedError = typeof error === "object" && error !== null ? JSON.stringify(error, (_key, value) => {
|
|
793
|
+
if (typeof value === "bigint") {
|
|
794
|
+
return value.toString();
|
|
795
|
+
}
|
|
796
|
+
if (typeof value === "object" && value !== null) {
|
|
797
|
+
if (seen.has(value)) {
|
|
798
|
+
return "[Circular]";
|
|
799
|
+
}
|
|
800
|
+
seen.add(value);
|
|
801
|
+
}
|
|
802
|
+
return value;
|
|
803
|
+
}) : "";
|
|
791
804
|
const errorObject = error;
|
|
792
805
|
const errorMessage = [
|
|
793
806
|
_optionalChain([errorObject, 'optionalAccess', _18 => _18.shortMessage]),
|
|
794
807
|
_optionalChain([errorObject, 'optionalAccess', _19 => _19.details]),
|
|
795
808
|
_optionalChain([errorObject, 'optionalAccess', _20 => _20.message]),
|
|
809
|
+
serializedError,
|
|
796
810
|
String(_nullishCoalesce(error, () => ( "")))
|
|
797
811
|
].filter(Boolean).join(" ").toLowerCase();
|
|
798
|
-
return errorMessage.includes("invalid pointer in tuple") || errorMessage.includes("could not decode") || errorMessage.includes("invalid arrayify value") || errorMessage.includes("types/value length mismatch");
|
|
812
|
+
return errorMessage.includes("invalid pointer in tuple") || errorMessage.includes("invalid pointer") || errorMessage.includes("could not decode") || errorMessage.includes("invalid arrayify value") || errorMessage.includes("types/value length mismatch");
|
|
799
813
|
};
|
|
800
814
|
var _sendTransaction = async ({
|
|
801
815
|
client,
|
package/dist/index.js
CHANGED
|
@@ -788,14 +788,28 @@ var _encodeSubmitAppealData = ({
|
|
|
788
788
|
});
|
|
789
789
|
};
|
|
790
790
|
var isAddTransactionAbiMismatchError = (error) => {
|
|
791
|
+
const seen = /* @__PURE__ */ new WeakSet();
|
|
792
|
+
const serializedError = typeof error === "object" && error !== null ? JSON.stringify(error, (_key, value) => {
|
|
793
|
+
if (typeof value === "bigint") {
|
|
794
|
+
return value.toString();
|
|
795
|
+
}
|
|
796
|
+
if (typeof value === "object" && value !== null) {
|
|
797
|
+
if (seen.has(value)) {
|
|
798
|
+
return "[Circular]";
|
|
799
|
+
}
|
|
800
|
+
seen.add(value);
|
|
801
|
+
}
|
|
802
|
+
return value;
|
|
803
|
+
}) : "";
|
|
791
804
|
const errorObject = error;
|
|
792
805
|
const errorMessage = [
|
|
793
806
|
errorObject?.shortMessage,
|
|
794
807
|
errorObject?.details,
|
|
795
808
|
errorObject?.message,
|
|
809
|
+
serializedError,
|
|
796
810
|
String(error ?? "")
|
|
797
811
|
].filter(Boolean).join(" ").toLowerCase();
|
|
798
|
-
return errorMessage.includes("invalid pointer in tuple") || errorMessage.includes("could not decode") || errorMessage.includes("invalid arrayify value") || errorMessage.includes("types/value length mismatch");
|
|
812
|
+
return errorMessage.includes("invalid pointer in tuple") || errorMessage.includes("invalid pointer") || errorMessage.includes("could not decode") || errorMessage.includes("invalid arrayify value") || errorMessage.includes("types/value length mismatch");
|
|
799
813
|
};
|
|
800
814
|
var _sendTransaction = async ({
|
|
801
815
|
client,
|