From b7abbc6e4e8422cdc3ab3ddf4711620fc8948215 Mon Sep 17 00:00:00 2001 From: facing-n Date: Fri, 20 Oct 2023 12:38:43 -0400 Subject: [PATCH] fix posts in program --- programs/nina/src/instructions/post_init_via_hub.rs | 6 +----- .../post_init_via_hub_with_reference_release.rs | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/programs/nina/src/instructions/post_init_via_hub.rs b/programs/nina/src/instructions/post_init_via_hub.rs index 9a00edeb..be0da9b5 100644 --- a/programs/nina/src/instructions/post_init_via_hub.rs +++ b/programs/nina/src/instructions/post_init_via_hub.rs @@ -5,17 +5,13 @@ use crate::errors::ErrorCode; #[derive(Accounts)] #[instruction( - hub_handle: String, + _hub_handle: String, slug: String, _uri: String, )] pub struct PostInitViaHub<'info> { #[account(mut)] pub payer: Signer<'info>, - #[account( - seeds = [b"nina-hub".as_ref(), hub_handle.as_bytes()], - bump, - )] pub hub: AccountLoader<'info, Hub>, #[account( init, diff --git a/programs/nina/src/instructions/post_init_via_hub_with_reference_release.rs b/programs/nina/src/instructions/post_init_via_hub_with_reference_release.rs index 6ed8ad0b..e1b92a08 100644 --- a/programs/nina/src/instructions/post_init_via_hub_with_reference_release.rs +++ b/programs/nina/src/instructions/post_init_via_hub_with_reference_release.rs @@ -12,7 +12,7 @@ pub struct PostInitViaHubWithReferenceRelease<'info> { #[account(mut)] pub author: Signer<'info>, #[account( - seeds = [b"nina-hub".as_ref(), hub_handle.as_bytes()], + seeds = [b"nina-hub".as_ref(), hub_handle.as_ref()], bump, )] pub hub: AccountLoader<'info, Hub>,