Skip to content

Commit

Permalink
feat: add actionType to getExternalUrl export in registry
Browse files Browse the repository at this point in the history
  • Loading branch information
mmackz committed Jul 31, 2024
1 parent 7284c9f commit 2f18857
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/registry/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,13 @@ export const getFees = (
}
}

export const getExternalUrl = (plugin: IActionPlugin, params: ActionParams) => {
export const getExternalUrl = (
plugin: IActionPlugin,
params: ActionParams,
actionType?: ActionType,
) => {
if (typeof plugin.getExternalUrl === 'function') {
return plugin.getExternalUrl(params)
return plugin.getExternalUrl(params, actionType)
} else {
throw new PluginActionNotImplementedError()
}
Expand Down

0 comments on commit 2f18857

Please sign in to comment.