Skip to content

Question on error when running on polygon #23

@TatisLois

Description

@TatisLois

This is a great lib! I was wondering if this utility supports polygon mainnet?

When I import this library and use it to get suggestions for tx on polygon (as a provider) an error is throw with

node_modules/@rainbow-me/fee-suggestions/dist/index.js:133
                        throw new Error('Error: ema was undefined');

An example implementation

const provider = ethers.getDefaultProvider('https://polygon-mainnet.infura.io/v3/008a971363b748c7bdfb80bfe3df977e');
feeSuggestions.suggestFees(provider).then(console.log);

even stranger is that it works on the mumbai test net. Any clarity or support would be appreciated. Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions