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

solana program write-buffer does not respect --buffer-authority #17890

Closed
ruuda opened this issue Jun 11, 2021 · 0 comments
Closed

solana program write-buffer does not respect --buffer-authority #17890

ruuda opened this issue Jun 11, 2021 · 0 comments
Labels
stale [bot only] Added to stale content; results in auto-close after a week.

Comments

@ruuda
Copy link
Contributor

ruuda commented Jun 11, 2021

Problem

solana program write-buffer does not respect --buffer-authority:

$ ~/.local/share/solana/install/releases/1.6.11/solana-release/bin/solana --url https://api.devnet.solana.com program write-buffer --buffer-authority 8JZPeAApMxn6UN3RDBZjHVGjgtnNuUdHdyyiLjnub8JC target/deploy/someprogram.so
Buffer: 2DjB5gvHvQ6aqTmmbTqsabg2uAYq48nxBKcPXFRv98Nf


$ ~/.local/share/solana/install/releases/1.6.11/solana-release/bin/solana --url https://api.devnet.solana.com program show 2DjB5gvHvQ6aqTmmbTqsabg2uAYq48nxBKcPXFRv98Nf

Buffer Address: 2DjB5gvHvQ6aqTmmbTqsabg2uAYq48nxBKcPXFRv98Nf
Authority: Bu3TFkuDsL8bzTcTv3FS71JzuEpWBKvjT3m4QWcw9rEP
Balance: 3.39334104 SOL
Data Length: 487376 (0x76fd0) bytes

Changing it afterwards does work:

$ ~/.local/share/solana/install/releases/1.6.11/solana-release/bin/solana --url https://api.devnet.solana.com program set-buffer-authority 2DjB5gvHvQ6aqTmmbTqsabg2uAYq48nxBKcPXFRv98Nf --new-buffer-authority 8JZPeAApMxn6UN3RDBZjHVGjgtnNuUdHdyyiLjnub8JC
Account Type: Buffer
Authority: 8JZPeAApMxn6UN3RDBZjHVGjgtnNuUdHdyyiLjnub8JC


$ ~/.local/share/solana/install/releases/1.6.11/solana-release/bin/solana --url https://api.devnet.solana.com program show 2DjB5gvHvQ6aqTmmbTqsabg2uAYq48nxBKcPXFRv98Nf

Buffer Address: 2DjB5gvHvQ6aqTmmbTqsabg2uAYq48nxBKcPXFRv98Nf
Authority: 8JZPeAApMxn6UN3RDBZjHVGjgtnNuUdHdyyiLjnub8JC
Balance: 3.39334104 SOL
Data Length: 487376 (0x76fd0) bytes

Proposed Solution

Double check the code, is it actually using the buffer authority provided?

@github-actions github-actions bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Dec 21, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale [bot only] Added to stale content; results in auto-close after a week.
Projects
None yet
Development

No branches or pull requests

1 participant