@flashnet/sdk 0.3.23 → 0.3.24

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.
Files changed (2) hide show
  1. package/README.md +2 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -240,7 +240,8 @@ const signature = await signer.signMessage(
240
240
  // Execute swap
241
241
  const swap = await api.executeSwap({
242
242
  // ... swap parameters
243
- signature: Buffer.from(signature).toString("hex"),
243
+ signature: typeof Buffer === "function" ?
244
+ Buffer.from(signature).toString("hex") : signature.toHex(),
244
245
  });
245
246
  ```
246
247
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashnet/sdk",
3
- "version": "0.3.23",
3
+ "version": "0.3.24",
4
4
  "main": "./dist/cjs/index.js",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/esm/index.d.ts",