Hello
How should I fetch the return value from a contract using ethers js.

The function is pure and returns an address, but the moment I call it the value stored in the variable is the tx details.
This is the line of code:
const signerAddr = await contract.recoverSigner(messageHash,signature);

the signerAddr variable contains the tx details, not the return value.

Apr 10, 2023, 5:31 AM
One thing I know is, to emit events.
But I am curious if we can anyhow fetch the return value??
Apr 10, 2023, 5:37 AM

© 2024 Draquery.com All rights reserved.