fix signTypeData call

pull/5298/head
yann300 1 month ago committed by Aniket
parent a2df681825
commit 35a019f31d
  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