Skip to content

Commit

Permalink
Merge pull request #532 from AmbireTech/fix/gas-price-error
Browse files Browse the repository at this point in the history
main: propagate gas price fetching error
  • Loading branch information
Ivshti authored Jan 23, 2024
2 parents c7d57b9 + af964bc commit 0874a0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/controllers/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,13 +403,13 @@ export class MainController extends EventEmitter {
this.settings.providers[network],
this.settings.networks.find((net) => net.id === network)!
)
} catch {
} catch (e) {
this.emitError({
level: 'major',
message: `Failed to fetch gas price for ${
message: `Unable to get gas price for ${
this.settings.networks.find((n) => n.id === network)?.name
}`,
error: new Error('Failed to fetch gas price')
error: new Error('Failed to fetch gas price: '+e.message)
})
}
})
Expand Down

0 comments on commit 0874a0e

Please sign in to comment.