Closed ilya-korotya closed 6 months ago
@ilya-korotya most likely what you get from TypeChain is an array with additional properties attached (& {...}
part). This is unfortunately how ethers.js was designed.
You can simply ignore the fact that it's an array and focus on object fields.
Currently, typechain plugin for hardhat generates code like:
What is the reason for returning an untyped array? When I use JSON.stringify on the result of the getUserCredential function, I receive an array instead of an object. How can I obtain only an object as the result of the getUserCredential function?