Closed crazyyuan closed 1 year ago
@crazyyuan Can you please share the chain you're using and also if possible can you share your code repo so we can investigate?
this.contract.getAddress
is usually a result of using ethers v5. I'll move ethers v6 as a production dependency to reduce the cases when it happens
Oh, it's already a production dependency, so something else might have been overriding it
@crazyyuan Can you please share the chain you're using and also if possible can you share your code repo so we can investigate?
network: optimism-goerli
click 'Test Prepare contribution' button will reproduce it.
this.contract.getAddress
is usually a result of using ethers v5. I'll move ethers v6 as a production dependency to reduce the cases when it happens
so which ethers version should I set to solve it?
If you want to use SDK >1.0.0 then you have to use ethers v6
If you want to use SDK >1.0.0 then you have to use ethers v6
thanks! I solved it with your suggestion.
After I created EAS instance. Test getAttestation feature is normal. But when I try to getOffchain, some error comes. I printed the EAS instance, the contract has no getAddress function.
version "@ethereum-attestation-service/eas-sdk":"^1.1.0-beta.3"