Skip to content

Commit

Permalink
fix returned accounts slice
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityblast committed Jun 26, 2019
1 parent 25bd8ab commit d891c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account/onboarding.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func NewOnboarding(n, mnemonicPhraseLength int) (*Onboarding, error) {

// Accounts return the list of OnboardingAccount generated.
func (o *Onboarding) Accounts() []*OnboardingAccount {
accounts := make([]*OnboardingAccount, len(o.accounts))
accounts := make([]*OnboardingAccount, 0)
for _, a := range o.accounts {
accounts = append(accounts, a)
}
Expand Down

0 comments on commit d891c7c

Please sign in to comment.