How can I make a call and get the return values #1787
Answered
by
ricmoo
Madeindreams
asked this question in
Q&A
-
I'm trying to send a call and get the expected return. The function
The code :
I get an error without revert message error: Error: VM execution error. What am i doing wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
ricmoo
Jul 20, 2021
Replies: 2 comments 8 replies
-
This is working. I get a receipt and payed the gas for it. But i should be able to get the returned value without paying the gas.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
zemse
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
contract.callStatic.quoteExactOutputSingle(…)
to use a call instead of send.