Skip to content
New issue

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

Ability to request a signer for a useCall function #897

Open
soya-miruku opened this issue Jul 24, 2022 · 4 comments
Open

Ability to request a signer for a useCall function #897

soya-miruku opened this issue Jul 24, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@soya-miruku
Copy link

I know this may sound a bit weird, but given we can't specify the signer when initializing a new contract as a param to the useCall func (unless i am miss understanding something), having an optional param would be useful for my use case whereby the signer is required

const result = useCall({
  contract,
  method: 'getUserInfo',
  args: [user]
}, {refresh: 'everyBlock', useSigner: true})
@soya-miruku soya-miruku added the enhancement New feature or request label Jul 24, 2022
@rzadp
Copy link
Contributor

rzadp commented Jul 25, 2022

@VinHylme Why do you need it? Do you use msg.sender in your view functions?

@soya-miruku
Copy link
Author

@rzadp working with a company and that's what the solidity dev did and as a result im having to find ways to get around it :/

@rzadp
Copy link
Contributor

rzadp commented Jul 25, 2022

@VinHylme Sure, just wanted to clarify the use case.

I'm afraid that might not be possible, because all our calls go through a Multicall contract - so effectively the Multicall contract address is the sender. But we will brainstorm if it's possible to work around this and make your use case possible.

@soya-miruku
Copy link
Author

@rzadp thank you sir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants