Skip to content

AnchorEarn is not a constructor #26

@ExordiumX

Description

@ExordiumX

I'm importing the SDK like this
const AnchorEarn = require("@anchor-protocol/anchor-earn");

and then I initialize a new instance as per the guide

const anchorEarn = new AnchorEarn({
  chain: "terra",
  network: "columbus-5",
  address: "MY_ADDRESS",
});

But I get this error
AnchorEarn is not a constructor

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions