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

Deployement Error #87

Closed
vijay-kesanakurthi opened this issue Nov 28, 2022 · 4 comments
Closed

Deployement Error #87

vijay-kesanakurthi opened this issue Nov 28, 2022 · 4 comments
Labels

Comments

@vijay-kesanakurthi
Copy link

vijay-kesanakurthi commented Nov 28, 2022

failed to send transaction:
Transaction simulation failed: Error processing Instruction 0: account data too small for instruction

let clock = clock::Clock::get()?; msg!("clock: {:#?}", clock);

Program deployed successfully, when i remove the above lines of code.

It works in localhost, problem with devnet.

@acheroncrypto
Copy link
Member

You might have missed to build before you deploy, are you able to reproduce this error on a new project? I've tried the code you've sent and didn't have any issues.

@vijay-kesanakurthi
Copy link
Author

Sometimes works, but sometimes not. I have same issue with the client.ts script.

@acheroncrypto
Copy link
Member

I have same issue with the client.ts script.

That could mean there is a problem with the RPC endpoint. Can you try changing it from the settings?

@vijay-kesanakurthi
Copy link
Author

Changing from devnet to localhost make it work when I encountered the error, but now it's working on the devnet.

Thanks for your assistance.

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

No branches or pull requests

2 participants