From 24b88c1415a5ecc3f9a177f3f76ea31f0ff37381 Mon Sep 17 00:00:00 2001 From: Rajath-DayFi <115416443+Rajath-DayFi@users.noreply.github.com> Date: Fri, 3 Mar 2023 15:50:38 +0530 Subject: [PATCH] signer address return type added --- helpers/requestHandlers/signerHandlers.js | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/helpers/requestHandlers/signerHandlers.js b/helpers/requestHandlers/signerHandlers.js index 33412f7..415b67e 100644 --- a/helpers/requestHandlers/signerHandlers.js +++ b/helpers/requestHandlers/signerHandlers.js @@ -4,7 +4,10 @@ const { soketBackendUrl, backendUrl } = require("../../constants"); const getSignerAddress = async ({chainId}) => { try { const response = await axios.get(`${backendUrl}/signer/getSignerbyChainId/${chainId}`); - return response.data; + return { + type: "SignerAddress", + result: response.data + }; } catch(error) { console.error(error); throw new Error(error.message); diff --git a/package.json b/package.json index c11d41e..b2dedcb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayfi_sdk", - "version": "0.1.28-alpha.0", + "version": "0.1.29-alpha.0", "description": "Dayfi SDK allows business/dApps to enable buying NFTs on affordable payment options, rent & loan providing users with 100% utility.", "main": "index.js", "repository": {