You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first error is "SyntaxError: Named export 'OffchainConfig' not found.". This can be solved by replacing the first line by import pkg from '@ethereum-attestation-service/eas-sdk'; const { OffchainAttestationVersion, Offchain, OffchainConfig } = pkg;
or import { OffchainAttestationVersion, Offchain } from "@ethereum-attestation-service/eas-sdk"; import type { OffchainConfig } from '@ethereum-attestation-service/eas-sdk';
The second error is:
And the error occurs in const isValidAttestation = offchain.verifyOffchainAttestationSignature(attestation.signer, attestation.sig);
I have no idea how to fix it.
What Typescript version are you using? What type of project you use? You can post your tsconfig.json. Regarding the second error, it appears that you are providing the wrong types of parameters to the function, one of which is null, since you get the invalid BytesLike error.
I ran the example code provided in section "Verifying an Offchain Attestation" and encountered 2 errors.
The text was updated successfully, but these errors were encountered: