Skip to content

Commit

Permalink
check the wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink committed Nov 26, 2024
1 parent d60ddf4 commit cda619b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/frames-validator/src/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ export async function validateFramesPost(
throw new Error("Installation not a member of association state");
}

const isMember = await Client.isAddressAuthorized(inboxId, walletAddress);
if (!isMember) {
throw new Error("Unable to associate wallet address with inbox");
}

const digest = sha256(actionBodyBytes);

// make sure installation signature is valid
Expand Down

0 comments on commit cda619b

Please sign in to comment.