-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
getAddress function is not callable #4165
Comments
I've encountered the same problem. A workaround to get the desired result is to call the function like this:
|
It worked! Thank you! I will still leave this issue open because I think it's something that needs to be fixed. |
Agreed |
Ran into this issue on eth-infinitism/account-abstraction: |
Hey, also encountered this issue. Any updates on this? |
When trying to get address of the signer it returns an error saying that it is private field. How are you able to create apps without it? |
For a signer, you should be able to just do |
A Signer should also have a But the OP was about contracts, I which is unrelated. |
Hey, @ricmoo Sorry, you are right this is unrelated. Since I am a noob regarding daps, I didn't know about .address property and I couldn't find the easy way through docs. I switched to web3js in the end. The error was that the @eladiosch You are right, thanks |
I spent a very long time trying to debug a problem today (the case of the perpetually empty storage slot) only to find this was the cause. It is unfortunate that the type of the internal |
Ethers Version
6.6.0
Search Terms
getAddress
Describe the Problem
I faced this issue when I created an instance of AaveLendingPoolAddressProvider contract and tried to call the getAddress function, whose signature is
getAddress(bytes32)
. Apparently, the function call is being ignored and the returned result corresponds to theasync getAddress()
method included in the BaseContract type.It's interesting that when I remove the argument on the contract call, it requires me to add an argument, but when I change the type of the argument to, for example, ethers.Typed.int24, no warning/error is displayed.
I tried all the approaches you can see in the code snippet, but the result was same.
Code Snippet
Contract ABI
No response
Errors
No response
Environment
Hardhat
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: