genlayer-js 0.19.2 → 0.19.3
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 +7 -3
- package/dist/index.js +7 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -788,9 +788,13 @@ var _encodeSubmitAppealData = ({
|
|
|
788
788
|
});
|
|
789
789
|
};
|
|
790
790
|
var isAddTransactionAbiMismatchError = (error) => {
|
|
791
|
-
const
|
|
792
|
-
|
|
793
|
-
|
|
791
|
+
const errorObject = error;
|
|
792
|
+
const errorMessage = [
|
|
793
|
+
_optionalChain([errorObject, 'optionalAccess', _18 => _18.shortMessage]),
|
|
794
|
+
_optionalChain([errorObject, 'optionalAccess', _19 => _19.details]),
|
|
795
|
+
_optionalChain([errorObject, 'optionalAccess', _20 => _20.message]),
|
|
796
|
+
String(_nullishCoalesce(error, () => ( "")))
|
|
797
|
+
].filter(Boolean).join(" ").toLowerCase();
|
|
794
798
|
return errorMessage.includes("invalid pointer in tuple") || errorMessage.includes("could not decode") || errorMessage.includes("invalid arrayify value") || errorMessage.includes("types/value length mismatch");
|
|
795
799
|
};
|
|
796
800
|
var _sendTransaction = async ({
|
package/dist/index.js
CHANGED
|
@@ -788,9 +788,13 @@ var _encodeSubmitAppealData = ({
|
|
|
788
788
|
});
|
|
789
789
|
};
|
|
790
790
|
var isAddTransactionAbiMismatchError = (error) => {
|
|
791
|
-
const
|
|
792
|
-
|
|
793
|
-
|
|
791
|
+
const errorObject = error;
|
|
792
|
+
const errorMessage = [
|
|
793
|
+
errorObject?.shortMessage,
|
|
794
|
+
errorObject?.details,
|
|
795
|
+
errorObject?.message,
|
|
796
|
+
String(error ?? "")
|
|
797
|
+
].filter(Boolean).join(" ").toLowerCase();
|
|
794
798
|
return errorMessage.includes("invalid pointer in tuple") || errorMessage.includes("could not decode") || errorMessage.includes("invalid arrayify value") || errorMessage.includes("types/value length mismatch");
|
|
795
799
|
};
|
|
796
800
|
var _sendTransaction = async ({
|