-
Notifications
You must be signed in to change notification settings - Fork 14
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
Remove explicit private keys in the code and getSigner(0) from account creation in tests #402
Comments
hi @mariacarmina , just some clarification. We don't necessarily need to generate other keys on all tests.. we could also have the getSigner(0) and getSigner(1) (or even more) addresses and hard code them on some constants. The important is to have some keys/addresses for testing... and avoid stuff like:
We could do like:
thanks |
From what we discussed today in the sprint planning session, this adds a bit of workload, because we do not want to expose the private keys clearly through the code. We leave it as low prio. cc @alexcos20 |
what do you mean by expose private keys?? We are explicitly setting the take the first integration test as example (we are exposing a key):
to:
i do agree its low priority but i think we might have misunderstood the main point here |
I meant for setup of the tests, not actually doing the modifications
I see that on 4 test files we use |
actually is 7 not 4 :-) (counting integration tests only) but my point is mainly about the getSigner(0) ... setup & modification is not hard... anyway, not priority for now, for sure |
I was counting the unit tests which were 4, there are 11 in total in tests. I understood the point and the effort on this should be as well low, will tackle when higher prio tasks are solved.
I'll change the title accordingly. |
Use blockchain class signer instead of getSigner(0) -> does not work for other networks.
The text was updated successfully, but these errors were encountered: