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

PDA sign not working #11

Open
toygr opened this issue Nov 19, 2024 · 0 comments
Open

PDA sign not working #11

toygr opened this issue Nov 19, 2024 · 0 comments

Comments

@toygr
Copy link

toygr commented Nov 19, 2024

#[cfg(target_os = "solana")]
        unsafe {
            solana_program::syscalls::sol_invoke_signed_c(
                &instruction as *const InstructionC as *const u8,
                infos.as_ptr() as *const u8,
                infos.len() as u64,
                seeds.as_ptr() as *const u8,
                seeds.len() as u64,
            );
        }

Of course, I used correct seeds and bump.
But it shows error:

"Allocate: 'to' account Address { address: 6gBgxb8eFTTGRnueiY2eD3mcRjND2mQPnT9pmTFAqbKn, base: None } must sign",
    'Program 11111111111111111111111111111111 failed: missing required signature for instruction',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant