From 821acdaada7733fc27bde0af8fdebb7607b94d81 Mon Sep 17 00:00:00 2001 From: salil-naik Date: Thu, 11 Jan 2024 17:09:18 +0530 Subject: [PATCH] v1.3.4 --- package.json | 2 +- src/types/index.d.ts | 16 ++++------------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 13bf125..b13ea0a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@socket.tech/plugin", - "version": "1.3.4-alpha", + "version": "1.3.4", "main": "dist/index.js", "module": "dist/index.es.js", "types": "dist/index.d.ts", diff --git a/src/types/index.d.ts b/src/types/index.d.ts index 4efb07d..f78867c 100644 --- a/src/types/index.d.ts +++ b/src/types/index.d.ts @@ -167,19 +167,11 @@ export interface WidgetProps { */ onSubmit?: (data: transactionDetails) => void; - onApprove?: (data: approveDetails) => void; /** - * txHash, - * context: { - * type: - * symbol: - * icon: - * }, - * transactionConfig: { - * fromChain, - * toChain - * } - */ + * This function is called twice, once when the approval is iniated and after it is completed + * @param {approveDetails} data + */ + onApprove?: (data: approveDetails) => void; /** * Fee Params to collect fees