You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This is on version 1.0.0-beta.50. Trying to sign a transaction fails with:
(node:87086) UnhandledPromiseRejectionWarning: TypeError: this.getGasPrice is not a function
at Proxy._callee$ (/path/to/node_modules/web3-eth-accounts/dist/web3-eth-accounts.cjs.js:387:29)
I looked into the code that stack trace is pointing to, and it seems getGasPrice is indeed undefined there. I found a fix for it, but it feels a bit too straight-forward, so I'm suspicious I'm just doing something dumb. If someone could do a sanity check on the below that'd be great.
Shouldn't this say GetGasPriceMethod instead, in line with this?