Skip to content

Commit

Permalink
fix test: load more addresess to make getAddrIndex working when using…
Browse files Browse the repository at this point in the history
… GetLoadedAddresses ref fibercrypto#139
  • Loading branch information
stdevAlDen committed Feb 14, 2020
1 parent a21d409 commit 3a67b89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coin/skycoin/models/testsutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ func makeLocalWalletsFromKeyData(t *testing.T, keysData []KeyData) []core.Wallet
walletsCache[kd.Mnemonic] = w
}
wallets[i] = w
w.GenAddresses(core.AccountAddress, 0, uint32(kd.AddressIndex+1), nil)
w.GenAddresses(core.ChangeAddress, 0, uint32(kd.AddressIndex+1), nil)
w.GenAddresses(core.AccountAddress, 0, uint32(kd.AddressIndex + 100), nil)
w.GenAddresses(core.ChangeAddress, 0, uint32(kd.AddressIndex + 100), nil)
}
return wallets
}
Expand Down

0 comments on commit 3a67b89

Please sign in to comment.