@raydium-io/raydium-sdk-v2 0.1.1-alpha → 0.1.2-alpha

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raydium-io/raydium-sdk-v2",
3
- "version": "0.1.1-alpha",
3
+ "version": "0.1.2-alpha",
4
4
  "description": "An SDK for building applications on top of Raydium.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "./lib/index.js",
@@ -261,7 +261,7 @@ export default class Account extends ModuleBase {
261
261
  basePubkey: owner,
262
262
  seed: newTokenAccount.seed,
263
263
  newAccountPubkey: newTokenAccount.publicKey,
264
- lamports: balanceNeeded,
264
+ lamports: balanceNeeded + Number(createInfo.amount?.toString() ?? 0),
265
265
  space: AccountLayout.span,
266
266
  programId: tokenProgram,
267
267
  });