Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
fix: check the target program correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
abishekk92 committed Mar 29, 2023
1 parent 6596e80 commit d6dfe58
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions programs/gpl_core/src/instructions/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub struct CreateConnection<'info> {
#[account(
seeds = [
SessionToken::SEED_PREFIX.as_bytes(),
session_token.target_program.key().as_ref(),
crate::id().as_ref(),
session_token.session_signer.key().as_ref(),
session_token.authority.key().as_ref()
],
Expand Down Expand Up @@ -145,7 +145,7 @@ pub struct DeleteConnection<'info> {
#[account(
seeds = [
SessionToken::SEED_PREFIX.as_bytes(),
session_token.target_program.key().as_ref(),
crate::id().as_ref(),
session_token.session_signer.key().as_ref(),
session_token.authority.key().as_ref()
],
Expand Down
4 changes: 2 additions & 2 deletions programs/gpl_core/src/instructions/post.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub struct CreatePost<'info> {
#[account(
seeds = [
SessionToken::SEED_PREFIX.as_bytes(),
session_token.target_program.key().as_ref(),
crate::id().as_ref(),
session_token.session_signer.key().as_ref(),
session_token.authority.key().as_ref()
],
Expand Down Expand Up @@ -288,7 +288,7 @@ pub struct DeletePost<'info> {
#[account(
seeds = [
SessionToken::SEED_PREFIX.as_bytes(),
session_token.target_program.key().as_ref(),
crate::id().as_ref(),
session_token.session_signer.key().as_ref(),
session_token.authority.key().as_ref()
],
Expand Down
4 changes: 2 additions & 2 deletions programs/gpl_core/src/instructions/reaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub struct CreateReaction<'info> {
#[account(
seeds = [
SessionToken::SEED_PREFIX.as_bytes(),
session_token.target_program.key().as_ref(),
crate::id().as_ref(),
session_token.session_signer.key().as_ref(),
session_token.authority.key().as_ref()
],
Expand Down Expand Up @@ -144,7 +144,7 @@ pub struct DeleteReaction<'info> {
#[account(
seeds = [
SessionToken::SEED_PREFIX.as_bytes(),
session_token.target_program.key().as_ref(),
crate::id().as_ref(),
session_token.session_signer.key().as_ref(),
session_token.authority.key().as_ref()
],
Expand Down

0 comments on commit d6dfe58

Please sign in to comment.