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

feat: add create ledger wallet address by account index command #8657

Merged
merged 5 commits into from
May 27, 2022

Conversation

gnasnik
Copy link
Contributor

@gnasnik gnasnik commented May 16, 2022

Related Issues

Proposed Changes

Additional Info

Checklist

Before you mark the PR ready for review, please make sure that:

  • All commits have a clear commit message.
  • The PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, INTERFACE BREAKING CHANGE, CONSENSUS BREAKING, build, chore, ci, docs,perf, refactor, revert, style, test
    • area: api, chain, state, vm, data transfer, market, mempool, message, block production, multisig, networking, paychan, proving, sealing, wallet, deps
  • This PR has tests for new functionality or change in behaviour
  • If new user-facing features are introduced, clear usage guidelines and / or documentation updates should be included in https://lotus.filecoin.io or Discussion Tutorials.
  • CI is green

@gnasnik gnasnik requested a review from a team as a code owner May 16, 2022 07:48
Copy link
Contributor

@magik6k magik6k left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

Other than the CodeQL warning, this looks good; Will merge after that's addressed.

return fmt.Errorf("must pass account index")
}

index, err := strconv.Atoi(cctx.Args().First())
Copy link
Contributor

Choose a reason for hiding this comment

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

CodeQL probably wants you to use

Suggested change
index, err := strconv.Atoi(cctx.Args().First())
index, err := strconv.ParseUint(cctx.Args().First(), 10, 32)

@codecov
Copy link

codecov bot commented May 25, 2022

Codecov Report

Merging #8657 (c33f87d) into master (df98a2a) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8657      +/-   ##
==========================================
- Coverage   40.82%   40.79%   -0.03%     
==========================================
  Files         688      688              
  Lines       75916    75954      +38     
==========================================
- Hits        30996    30989       -7     
- Misses      39579    39624      +45     
  Partials     5341     5341              
Impacted Files Coverage Δ
cmd/lotus-shed/ledger.go 0.00% <0.00%> (ø)
chain/events/observer.go 73.79% <0.00%> (-6.21%) ⬇️
storage/wdpost_sched.go 77.45% <0.00%> (-3.93%) ⬇️
extern/sector-storage/worker_tracked.go 80.50% <0.00%> (-2.55%) ⬇️
chain/sub/incoming.go 59.02% <0.00%> (-2.45%) ⬇️
extern/storage-sealing/currentdealinfo.go 71.92% <0.00%> (-1.76%) ⬇️
blockstore/autobatch.go 56.30% <0.00%> (-1.69%) ⬇️
chain/vm/vm.go 61.63% <0.00%> (-1.07%) ⬇️
chain/store/store.go 64.16% <0.00%> (-0.67%) ⬇️
miner/miner.go 56.72% <0.00%> (-0.66%) ⬇️
... and 17 more

Copy link
Contributor

@magik6k magik6k left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@magik6k magik6k merged commit d38cd87 into filecoin-project:master May 27, 2022
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.

2 participants