We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While you cannot specify a msg.sender with the useContractCall function some of my function like withdraw doesn't work.
withdraw
https://github.com/EthWorks/useDApp/blob/485530a40eeb50b7ed5d7fedce00ff12a5d93a1c/packages/core/src/hooks/useContractCall.ts#L26-L31
I had to change my function from this :
function getBet() external view onlyCurrentACPI returns (uint256) { return _balance[msg.sender][_currentRound]; }
to this:
function getBet(address account) external view onlyCurrentACPI returns (uint256) { return _balance[account][_currentRound]; }
Looking for help :)
The text was updated successfully, but these errors were encountered:
We are going to add connectors to useDapp soon which solve that problem:0
Sorry, something went wrong.
yeah being able to pass in overrides object is quite important.
overrides
I'm going to close this one and merge it with #897 as it is the same problem.
There might be problems with implementing this feature - #897 (comment)
Successfully merging a pull request may close this issue.
While you cannot specify a msg.sender with the useContractCall function some of my function like
withdraw
doesn't work.https://github.com/EthWorks/useDApp/blob/485530a40eeb50b7ed5d7fedce00ff12a5d93a1c/packages/core/src/hooks/useContractCall.ts#L26-L31
I had to change my function from this :
to this:
Looking for help :)
The text was updated successfully, but these errors were encountered: