Skip to content
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

Unable to run the tests successfully on the polygon network #3

Open
nidhi-singh02 opened this issue Dec 7, 2023 · 1 comment
Open

Comments

@nidhi-singh02
Copy link

nidhi-singh02 commented Dec 7, 2023

I am trying to run the project on my machine, I have followed all the steps defined in the README.md under the "contracts" folder and I am using ploygon mumbai network. While trying to do
npx hardhat test, my test are failing with error

SportsPredictionGame Unit Tests
       Claim
         should split winnings between results:
     Error: sending a transaction requires a signer (operation="sendTransaction", code=UNSUPPORTED_OPERATION, version=contracts/5.7.0)

Node version - above 18.

@nidhi-singh02 nidhi-singh02 changed the title Unable to run the tests on the polygon network Unable to run the tests successfully on the polygon network Dec 7, 2023
@zeuslawyer
Copy link
Contributor

zeuslawyer commented May 9, 2024

@nidhi-singh02 the error seems to indicate that there iss no signer/provider. Indicates that perhaps you're PRIVATE KEY env var is not being picked up or is unset. Please take a look at that?

Also note that Mumbai has been deprecated and we've update the configs accordingly. Please pull the repo and use one of the supported networks (contracts/networks.js)

I'll close this issue for now as its possibly stale, but if you need help please reopen. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants