getPair call via Ethers.Contract does not return a pair address #5566
Samboy76
started this conversation in
Truffle Boxes
Replies: 2 comments 13 replies
-
Hey @Samboy76 How do you run your JS script? You mentioned getPair working okay inside Truffle console? Any more screenshots, logs, or info you can share? Thank you! |
Beta Was this translation helpful? Give feedback.
11 replies
-
Got the repo. Thank you! Will hop on analysis with the rest
of team tomorrow morning. Hoping its a small bug somewhere.
…On Thu, Sep 29, 2022, 2:20 PM Samboy76 ***@***.***> wrote:
priceBotChecker.js
—
Reply to this email directly, view it on GitHub
<#5566 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJSDIQQAM4ZQ3CR2PUHD7MTWAYB2PANCNFSM6AAAAAAQWEYO4U>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
When I call following getPair under uniswapFactory contract I created via ethers.Contract in my javascript it doesn´t return any pair address.
Strange thing is if I removed
await
keywork it returns Promise { }.However, if I run
await uniswapFactory.getPair(wethAddress, otherAddress);
directly under Truffle console it resolves the pair address correctly.Any suggestions would be greatly appreciated as it´s been bugging me also for a very long time.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions