Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with signing SystemProgram.createAccount instruction after updating Solana mainnet #32650

Closed
wojciech-cichocki opened this issue Jul 28, 2023 · 1 comment
Labels
community Community contribution

Comments

@wojciech-cichocki
Copy link

I have a program deployed on the Solana mainnet. Recently, it seems that the mainnet received an update that included some breaking changes. As a result, I encountered an issue with signing transactions that involve the SystemProgram.createAccount instruction. Let me share the relevant code snippet:

const tx = new Transaction({
  feePayer: payerPubkey
}).add(
  SystemProgram.createAccount({
    fromPubkey: payerPubkey,
    newAccountPubkey: bitmapKeypair.publicKey,
    space: this.program.account.tickmap.size,
    lamports: await this.connection.getMinimumBalanceForRentExemption(
      this.program.account.tickmap.size
    ),
    programId: this.program.programId
  })
);

Here's line of code in the repository: https://github.com/invariant-labs/protocol/blob/master/sdk/src/market.ts#L126

When attempting to sign the transaction, I encountered an error message stating: "invalid program argument".
Screenshot from 2023-07-26 20-59-48
To rule out any wallet-specific issues, I tested the transaction with other wallets like Backpack wallet and Nightly wallet, and the same error persists.

I've noticed that this issue arises when using the latest dependency version: "@solana/web3.js": "1.78.0".

@wojciech-cichocki wojciech-cichocki added the community Community contribution label Jul 28, 2023
@wojciech-cichocki
Copy link
Author

I solved the problem. It was entirely on my side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution
Projects
None yet
Development

No branches or pull requests

1 participant