parse address from signer when passed as contract call parameter
See original GitHub issueCurrent
let user: Signer
it('should get balance and owner', async () => {
expect(await token.balanceOf(await user.getAddress())).to.eq(0)
expect(await token.owner()).to.eq(await user.getAddress())
})
Desired
let user: Signer
it('should get balance and owner', async () => {
expect(await token.balanceOf(user)).to.eq(0)
expect(await token.owner()).to.eq(user)
})
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Sending an argument with an ethers contract object
I need to pass an argument userTeamChosen with a appendUserBet() function which I both set the values for through html forms but get...
Read more >encodeABI to get call data with encoded parameters ... - GitHub
is there anyway i can encode executable contract and pass it into the data parameter like this myContract.methods.myMethod(123).
Read more >Ethers pass method name with parameters instead of hexdata
I am using ethers to interact with contracts on Ethereum. This is how my method looks like:
Read more >Contracts — ethers.js 4.0.0 documentation
A Contract is an abstraction of an executable program on the Ethereum Blockchain. A Contract has code (called byte code) as well as...
Read more >Ethers.js Cheatsheet - ChainShot
@param {Contract} deliveryService - An ethers.js Contract pointed at a ... send ether directly to the example contract address from the signer await...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Actually, this is already implemented! Promise inputs are resolved.
I think this has been answered and I’ve added the
Addressable
to my TODO backlog for v6, so I’m going to close this now. If there are still issues, please feel free to re-open.Thanks! 😃