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

Problem: (#12)mnemonic field is accidentally deleted in accounts generation #13

Merged
merged 1 commit into from
Jul 6, 2021

Conversation

allthatjazzleo
Copy link
Contributor

Solution: adding back mnemonic field

@leejw51crypto
Copy link
Collaborator

it should pass integration test
i'm checking on it

@leejw51crypto
Copy link
Collaborator

leejw51crypto commented Jul 5, 2021

also, check line 255: # create validator account
self.create_account("validator", i, mnemonic)

create_account is used like above, need to change this line or other code.

@leejw51crypto
Copy link
Collaborator

leejw51crypto commented Jul 5, 2021

change pyproject.toml like this
to test

for example)

  • from
[tool.poetry.dependencies]
pystarport = "^0.2.1"
  • to
[tool.poetry.dependencies]
pystarport = { git="https://github.com/crypto-com/pystarport.git", branch= "issue-12" }

@leejw51crypto
Copy link
Collaborator

leejw51crypto commented Jul 5, 2021

make nix-integration-test

integration test passed

@leejw51crypto
Copy link
Collaborator

also for api design perspective,
how about giving mnemonics as argument instead of node.get("mnemonic")?
because mnemonic is special, storing is only for testing

if pystarport is used not testing, mnemonics are not stored, and given from user.

@allthatjazzleo
Copy link
Contributor Author

also, check line 255: # create validator account
self.create_account("validator", i, mnemonic)

create_account is used like above, need to change this line or other code.

For line 255, it is different method from line 691

@leejw51crypto
Copy link
Collaborator

leejw51crypto commented Jul 6, 2021

yes, that's correct
same name create_account in different classes.
maybe we can do refactoring later. change function name to something different or
separate other file

Copy link
Collaborator

@leejw51crypto leejw51crypto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@yihuang yihuang merged commit 3257357 into main Jul 6, 2021
@yihuang yihuang deleted the issue-12 branch July 6, 2021 01:32
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

Successfully merging this pull request may close these issues.

3 participants