fix signTypeData call

pull/5370/head
yann300 2 months ago committed by Aniket
parent 93217919a6
commit c7ee3a76ff
  1. 4
      libs/remix-ui/workspace/src/lib/actions/index.tsx

@ -523,14 +523,14 @@ export const signTypedData = async (path: string) => {
try {
const result = await web3.currentProvider.request({
method: 'eth_signTypedData',
method: 'eth_signTypedData_v4',
params: [settings.selectedAccount, parsed]
})
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}` })
plugin.call('terminal', 'log', { type: 'error', value: `error while signing ${path}: ${e.message}` })
dispatch(displayPopUp(e.message))
}
}

Loading…
Cancel
Save