ethereum-attestation-service / eas-sdk

Ethereum Attestation Service - TypeScript/JavaScript SDK
MIT License
83 stars 38 forks source link

Offchain Attestation Gives Error #60

Closed t9fiction closed 9 months ago

t9fiction commented 9 months ago

so what happens is that, as soon as the application reaches at the line

const offchain = await eas.getOffchain();

It gives the following error Uncaught (in promise) TypeError: this.contract.getAddress is not a function

I am not using typescript, just simple javascript with react.

lbeder commented 9 months ago

It usually happens if you are using ethers v5, which is no longer supported by the latest versions of the SDK, which were upgraded to ethers v6.