Open Samboy76 opened 1 year ago
Depends on the wallet provider ( or an object ) that you are connecting with.
Make sure to check if the provider node could be connected, and using the right network.
Also, await keyword is essential since it resolves promise object ( since it is a remote call that uses node ).
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