Skip to content

Add ability to run using chain json file#306

Merged
0xKrishna merged 5 commits into
v0.3.0-devfrom
krishna/cli-chain-genesis
Feb 8, 2022
Merged

Add ability to run using chain json file#306
0xKrishna merged 5 commits into
v0.3.0-devfrom
krishna/cli-chain-genesis

Conversation

@0xKrishna

@0xKrishna 0xKrishna commented Jan 21, 2022

Copy link
Copy Markdown
Contributor

Comment thread internal/cli/server/chains/chain.go Outdated
vcastellm
vcastellm previously approved these changes Jan 21, 2022

@vcastellm vcastellm left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@ferranbt ferranbt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes look good! One last thing, could you add a test for importChain so that we are sure that we can decode a chain in JSON format?

@0xKrishna

Copy link
Copy Markdown
Contributor Author

Changes look good! One last thing, could you add a test for importChain so that we are sure that we can decode a chain in JSON format?

Done, Please let me know if anything is wrong, I haven't written too many test cases lately.

@0xKrishna 0xKrishna requested a review from ferranbt January 24, 2022 05:57

@ferranbt ferranbt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, only minor changes.

"testing"
)

func TestImportFromFile(t *testing.T) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Rename to TestChain_ImportFromFile.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

@0xKrishna 0xKrishna requested a review from ferranbt January 24, 2022 08:42
ferranbt
ferranbt previously approved these changes Jan 28, 2022
manav2401
manav2401 previously approved these changes Jan 28, 2022
@0xKrishna 0xKrishna dismissed stale reviews from manav2401 and ferranbt via c84e855 February 8, 2022 07:00

@vcastellm vcastellm left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@0xKrishna 0xKrishna changed the base branch from master to v0.3.0-dev February 8, 2022 07:22

@manav2401 manav2401 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@0xKrishna 0xKrishna merged commit f7d045b into v0.3.0-dev Feb 8, 2022
@0xKrishna 0xKrishna deleted the krishna/cli-chain-genesis branch February 8, 2022 07:33
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.

4 participants