@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.js
CHANGED
|
@@ -1718,6 +1718,12 @@ function validateAddress(address, name) {
|
|
|
1718
1718
|
return address;
|
|
1719
1719
|
}
|
|
1720
1720
|
function validateAmount(amount, name) {
|
|
1721
|
+
if (typeof amount !== "bigint") {
|
|
1722
|
+
throw new SymmioSDKError(
|
|
1723
|
+
`${name} must be a bigint, got ${amount === void 0 ? "undefined" : typeof amount} (${amount})`,
|
|
1724
|
+
"INVALID_AMOUNT"
|
|
1725
|
+
);
|
|
1726
|
+
}
|
|
1721
1727
|
if (amount <= 0n) {
|
|
1722
1728
|
throw new SymmioSDKError(
|
|
1723
1729
|
`${name} must be a positive amount, got ${amount}`,
|