Skip to content

isEIP55Address cannot be called because @spruceid/siwe-parser might be below 2.0.0 version  #176

@gssvv

Description

@gssvv

I faced that issue when I saw that error:

  if (!(0, siwe_parser_1.isEIP55Address)(this.address)) {
TypeError: (0 , siwe_parser_1.isEIP55Address) is not a function

I started to look into that and noticed that function isEIP55Address was introduced in @spruceid/siwe-parser version 2.0.0.
And right now there's no dependency rule for that in siwe package.json:

"@spruceid/siwe-parser": "*",

I believe that it must be set to ^2.0.0

A quick fix

If you're facing the same problem in your project, just install @spruceid/siwe-parser@^2.0.0. This will force siwe to use a newer version and the problem will be solved

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