|
|
@ -86,7 +86,7 @@ export class Web3ProviderModule extends Plugin { |
|
|
|
try { |
|
|
|
try { |
|
|
|
resultFn(null, await provider.sendAsync(payload)) |
|
|
|
resultFn(null, await provider.sendAsync(payload)) |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
resultFn(e.error ? new Error(e.error) : new Error(e)) |
|
|
|
resultFn(e.error ? e.error : e) |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
reject(new Error('User denied permission')) |
|
|
|
reject(new Error('User denied permission')) |
|
|
|