This might just be a docs issue, however, the offchain example is failing for me because of refUID missing in the call to signOffchainAttestation as ethers runs into an issue when hashing:
/eas-sdk-test/node_modules/@ethersproject/bytes/lib/index.js:9
return !!(value.toHexString);
^
TypeError: Cannot read properties of undefined (reading 'toHexString')
at isHexable (/eas-sdk-test/node_modules/@ethersproject/bytes/lib/index.js:9:21)
at arrayify (/eas-sdk-test/node_modules/@ethersproject/bytes/lib/index.js:69:9)
at _pack (/eas-sdk-test/node_modules/@ethersproject/solidity/lib/index.js:53:34)
at /eas-sdk-test/node_modules/@ethersproject/solidity/lib/index.js:83:20
at Array.forEach (<anonymous>)
at pack (/eas-sdk-test/node_modules/@ethersproject/solidity/lib/index.js:82:11)
at keccak256 (/eas-sdk-test/node_modules/@ethersproject/solidity/lib/index.js:89:39)
at getOffchainUID (/eas-sdk-test/node_modules/@ethereum-attestation-service/eas-sdk/dist/utils.js:14:94)
at Offchain.getOffchainUID (/eas-sdk-test/node_modules/@ethereum-attestation-service/eas-sdk/dist/offchain/offchain.js:59:43)
at Offchain.signOffchainAttestation (/eas-sdk-test/node_modules/@ethereum-attestation-service/eas-sdk/dist/offchain/offchain.js:40:30)
Node.js v19.8.1
This might just be a docs issue, however, the offchain example is failing for me because of
refUID
missing in the call tosignOffchainAttestation
asethers
runs into an issue when hashing:Setting
refUID: '0x0000000000000000000000000000000000000000000000000000000000000000',
solves this:Adding the
revocable
param has no influence, but worth noting if this is just a doc cleanup.