@pear-protocol/symmio-client 0.3.17 → 0.3.19
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -0
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.js +6 -0
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +6 -0
- package/dist/react/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react/index.mjs
CHANGED
|
@@ -1716,6 +1716,12 @@ function validateAddress(address, name) {
|
|
|
1716
1716
|
return address;
|
|
1717
1717
|
}
|
|
1718
1718
|
function validateAmount(amount, name) {
|
|
1719
|
+
if (typeof amount !== "bigint") {
|
|
1720
|
+
throw new SymmioSDKError(
|
|
1721
|
+
`${name} must be a bigint, got ${amount === void 0 ? "undefined" : typeof amount} (${amount})`,
|
|
1722
|
+
"INVALID_AMOUNT"
|
|
1723
|
+
);
|
|
1724
|
+
}
|
|
1719
1725
|
if (amount <= 0n) {
|
|
1720
1726
|
throw new SymmioSDKError(
|
|
1721
1727
|
`${name} must be a positive amount, got ${amount}`,
|