Content pfp
Content
@
0 reply
0 recast
0 reaction

Joshua Hyde pfp
Joshua Hyde
@jrh3k5.eth
Is there a way to test a Dapp locally with Hardhat and multiple (4+) wallets connected concurrently? Been getting by with 3 (CB Wallet on Chrome and Brave, Metamask on Firefox), but now I need to test with 4+ wallets.
3 replies
0 recast
1 reaction

killjoy.eth ๐ŸŽฉ  pfp
killjoy.eth ๐ŸŽฉ
@killjoy
I would just create additional user profiles in chrome and setup a new MetaMask wallet within each profile.
1 reply
0 recast
1 reaction

Joshua Hyde pfp
Joshua Hyde
@jrh3k5.eth
I *think* it may be just easier to build a mock implementation as a locally-running HTTP server. This may turn out to be one of those "because we thought it'd be easy" kind of things.
2 replies
0 recast
0 reaction

killjoy.eth ๐ŸŽฉ  pfp
killjoy.eth ๐ŸŽฉ
@killjoy
You actually donโ€™t even need to setup a new metamask wallet, just import the same one within each profile. As long as each browser instance is running within a distinct user profile changing the active account in one window wonโ€™t change the account in another window.
1 reply
0 recast
1 reaction

killjoy.eth ๐ŸŽฉ  pfp
killjoy.eth ๐ŸŽฉ
@killjoy
This feels to me like something you want to write a unit test for rather than trying to do it in the browser. But yeah if you want to test that your UI works adding new chrome profiles with fresh metamask wallets will do the trick. Not sure what you mean by a mock implementation?
0 reply
0 recast
0 reaction