-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
Can't use synpress with custom chain #764
Comments
Thanks for reporting! Will take a look in to this asap. |
Thank you, my setup could be wrong, but I've looked at all available documentation and couldn't find a way to make it work. If this is the case i would be super grateful for a workaround. Thank you for the quick response. |
Can confirm this happens to me too. I checked the logic of the package and it seems like the EDIT: This happens even if the correct setupMetamask: async ({
secretWordsOrPrivateKey,
network,
password,
enableAdvancedSettings,
enableExperimentalSettings,
}) => {
if (process.env.NETWORK_NAME) {
network = process.env.NETWORK_NAME;
}
if (process.env.PRIVATE_KEY) {
secretWordsOrPrivateKey = process.env.PRIVATE_KEY;
}
if (process.env.SECRET_WORDS) {
secretWordsOrPrivateKey = process.env.SECRET_WORDS;
}
await metamask.initialSetup(null, {
secretWordsOrPrivateKey,
network,
password,
enableAdvancedSettings,
enableExperimentalSettings,
});
return true;
}, |
Nice catch @sloonzz . Are you aware of any workaround for the time being ? |
Currently trying to manually EDIT: This should(?) be an easy fix though? Just check if the rest of the variables exist then pass in the whole object instead of just the string inside |
That's what I though as well, but it again gave me error that it couldn't get the network (same error that I get when i try the .env variables method), when I tried it. |
@georgi-l95 You can use my fork in the meantime. Haven't tested it yet because power went out. But I tested an earlier iteration of this and seems to work fine. https://github.com/sloonzz/synpress |
@georgi-l95 what error do you get? Is it the one below?
I'm asking because it seems that I've run into the same issue, but I'm not quite sure yet. My test env is:
The only issue that I've found mentioning this error is #417, but that one is about watch mode, while I'm having troubles with the ordinary mode. PS The Stack Trace is minimal:
and
Created a new issue to make it fully reproducible: #775 |
I've take several steps further, and added some debugging into synpress/commands/metamask.js → initialSetup:
Suprisingly, it reports that |
@georgi-l95 @sloonzz @YakovL Please let me know. Thx. |
Hey @r3kt-eth, just to confirm that latest version is working now. Thank you! |
Describe the bug
I'm trying to setup a test, while using custom chain not present here: https://github.com/wagmi-dev/references/tree/main/packages/chains#chains
This flow was working prior version 3.0.5.
To Reproduce
Steps to reproduce the behavior:
.env
file.Related repository
https://github.com/hashgraph/hedera-json-rpc-relay/tree/main/dapp-example
Expected behavior
To be able to run with chain not present in the wagmi repo.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: