From 2f188572e17fd3c9941d952749a718316aec0aff Mon Sep 17 00:00:00 2001 From: mmackz Date: Wed, 31 Jul 2024 12:38:54 -0700 Subject: [PATCH] feat: add actionType to getExternalUrl export in registry --- packages/registry/src/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/registry/src/index.ts b/packages/registry/src/index.ts index 384627eae..811b45dea 100644 --- a/packages/registry/src/index.ts +++ b/packages/registry/src/index.ts @@ -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() }