From b586fd7e24d18d4b047abb6f14df881b4a9cb097 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 31 Oct 2024 10:03:09 +0100 Subject: [PATCH] fix singing --- apps/remix-ide/src/app/udapp/run-tab.tsx | 2 +- libs/remix-ui/workspace/src/lib/actions/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide/src/app/udapp/run-tab.tsx b/apps/remix-ide/src/app/udapp/run-tab.tsx index 983629cb81..8b4467081e 100644 --- a/apps/remix-ide/src/app/udapp/run-tab.tsx +++ b/apps/remix-ide/src/app/udapp/run-tab.tsx @@ -304,7 +304,7 @@ class Provider { if (response.error) { reject(response.error.message) } else { - resolve(response) + resolve(response.result) } }).catch((err) => { if (typeof err === 'string') { diff --git a/libs/remix-ui/workspace/src/lib/actions/index.tsx b/libs/remix-ui/workspace/src/lib/actions/index.tsx index cc66374596..7478ef3aaa 100644 --- a/libs/remix-ui/workspace/src/lib/actions/index.tsx +++ b/libs/remix-ui/workspace/src/lib/actions/index.tsx @@ -530,7 +530,7 @@ export const signTypedData = async (path: string) => { plugin.call('terminal', 'log', { type: 'log', value: `${path} signature using ${settings.selectedAccount} : ${result}` }) } catch (e) { console.error(e) - plugin.call('terminal', 'log', { type: 'error', value: `error while signing ${path}: ${e.message}` }) + plugin.call('terminal', 'log', { type: 'error', value: `error while signing ${path}: ${e.message || e}` }) dispatch(displayPopUp(e.message)) } }