mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-22 19:19:09 +00:00
wallet: add test to regenerate CLI testwallet
This commit is contained in:
parent
5017f2d2e6
commit
5071173dfd
1 changed files with 14 additions and 0 deletions
|
@ -154,6 +154,20 @@ func TestRegenerateExamplesWallet(t *testing.T) {
|
|||
createWallet(t, walletPath, acc1)
|
||||
}
|
||||
|
||||
func TestRegenerateCLITestwallet(t *testing.T) {
|
||||
if !regenerate {
|
||||
return
|
||||
}
|
||||
const (
|
||||
walletPath = "../../cli/testdata/testwallet.json"
|
||||
accWIF = "L23LrQNWELytYLvb5c6dXBDdF2DNPL9RRNWPqppv3roxacSnn8CN"
|
||||
)
|
||||
|
||||
acc := getAccount(t, accWIF, "testpass")
|
||||
acc.Label = "kek"
|
||||
createWallet(t, walletPath, acc)
|
||||
}
|
||||
|
||||
func createWallet(t *testing.T, path string, accs ...*Account) {
|
||||
w, err := NewWallet(path)
|
||||
require.NoError(t, err)
|
||||
|
|
Loading…
Reference in a new issue