fix singing

pull/5359/head
yann300 3 weeks ago
parent 9d6ef464d1
commit b586fd7e24
  1. 2
      apps/remix-ide/src/app/udapp/run-tab.tsx
  2. 2
      libs/remix-ui/workspace/src/lib/actions/index.tsx

@ -304,7 +304,7 @@ class Provider {
if (response.error) { if (response.error) {
reject(response.error.message) reject(response.error.message)
} else { } else {
resolve(response) resolve(response.result)
} }
}).catch((err) => { }).catch((err) => {
if (typeof err === 'string') { if (typeof err === 'string') {

@ -530,7 +530,7 @@ export const signTypedData = async (path: string) => {
plugin.call('terminal', 'log', { type: 'log', value: `${path} signature using ${settings.selectedAccount} : ${result}` }) plugin.call('terminal', 'log', { type: 'log', value: `${path} signature using ${settings.selectedAccount} : ${result}` })
} catch (e) { } catch (e) {
console.error(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)) dispatch(displayPopUp(e.message))
} }
} }

Loading…
Cancel
Save