Skip to content

Commit

Permalink
added signer seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyboylehub committed May 30, 2024
1 parent 130b571 commit 21ee181
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/rust/utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ path = "src/lib.rs"

[dependencies]
arrayref = "0.3.6"
solana-program = "1.18.0"
solana-program = ">= 1.14.13, < 1.17"
spl-token-2022 = { version = ">= 0.6.0, < 0.9", features = ["no-entrypoint"], optional = true }

[features]
Expand Down
6 changes: 5 additions & 1 deletion hydra/program/src/processors/signing/sign_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ pub fn sign_metadata(ctx: Context<SignMetadata>) -> Result<()> {
)
.metadata(&ctx.accounts.metadata)
.authority(&holding_account)
.invoke()
.invoke_signed(&[&[
"fanout-native-account".as_bytes(),
ctx.accounts.fanout.key().as_ref(),
&[ctx.bumps.holding_account],
]])
.map_err(|e| {
error::Error::ProgramError(Box::new(ProgramErrorWithOrigin {
program_error: e,
Expand Down

0 comments on commit 21ee181

Please sign in to comment.