injected error data

pull/5370/head
filip mertens 1 year ago
parent bb563e47ef
commit 2d239ad4a7
  1. 2
      apps/remix-ide/src/app/providers/injected-provider.tsx

@ -105,7 +105,7 @@ export abstract class InjectedProvider extends Plugin implements IProvider {
resolve({jsonrpc: '2.0', error: 'no return data provided', id: data.id}) resolve({jsonrpc: '2.0', error: 'no return data provided', id: data.id})
} }
} catch (error) { } catch (error) {
if (error.data.originalError && error.data.originalError.data) { if (error.data && error.data.originalError && error.data.originalError.data) {
resolve({ resolve({
jsonrpc: '2.0', jsonrpc: '2.0',
error: error.data.originalError.message, error: error.data.originalError.message,

Loading…
Cancel
Save