Skip to content

Commit

Permalink
feat: Updated getFrameMetadata.ts to support target for button po…
Browse files Browse the repository at this point in the history
…st actions (#130)
  • Loading branch information
HashWarlock authored Feb 18, 2024
1 parent f6d077f commit 31ab0e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/getFrameMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const getFrameMetadata = function ({
if (button.action) {
metadata[`fc:frame:button:${index + 1}:action`] = button.action;
}
if ((button.action == 'link' || button.action == 'mint') && button.target) {
if ((button.action == 'link' || button.action == 'mint' || button.action == 'post') && button.target) {
metadata[`fc:frame:button:${index + 1}:target`] = button.target;
}
});
Expand Down

0 comments on commit 31ab0e9

Please sign in to comment.