Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kouraf opened this issue Nov 16, 2023 · 1 comment
Closed

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

kouraf opened this issue Nov 16, 2023 · 1 comment

Comments

@kouraf
Copy link

kouraf commented Nov 16, 2023

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
@kouraf
Copy link
Author

kouraf commented Nov 17, 2023

Found a workaround here: 171

@kouraf kouraf closed this as completed Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant