Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

this.getGasPrice is not a function; GasPriceMethod vs GetGasPriceMethod #2558

@Fang-

Description

@Fang-

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugAddressing a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions