Skip to content

EIP-1271 Authsig failed 401 but the contract return 0x1626ba7e #259

@kouraf

Description

@kouraf

I am encountering an access control error with the following details:

{
  "message": "Access control failed for Smart contract",
  "errorCode": "NodeContractAuthsigUnauthorized",
  "errorKind": "Validation",
  "status": 401,
  "details": [
    "validation error: Authsig failed for contract 0xd68fa46952bC848f8675a89383c5B074e1E22E40: EIP1271 Authsig failed"
  ]
}

However, when I call the isValidSignature function of the contract, it returns true.

To Reproduce
replit

Expected behavior
Since the contract returns 0x1626ba7e which means the signature is valid, it should work

Environment:

  • @lit-protocol/lit-node-client: "^2.2.61"
  • litNetwork: "serrano"
  • Node: v20.3.1

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