Ensure API create_wallet returns failure when provided with invalid mnemonic seeds (#319)

* Ensure  returns failure with invalid mnemonic seeds, add tests

* test fixes resulting from change
This commit is contained in:
Yeastplume
2020-01-31 12:00:49 +00:00
committed by GitHub
parent e71d79dc38
commit ed5b9008c0
6 changed files with 51 additions and 3 deletions
@@ -0,0 +1,11 @@
{
"jsonrpc": "2.0",
"method": "create_wallet",
"params": {
"name": null,
"mnemonic": "this is not valid",
"mnemonic_length": 32,
"password": "passwoid"
},
"id": 1
}
@@ -0,0 +1,11 @@
{
"jsonrpc": "2.0",
"method": "create_wallet",
"params": {
"name": null,
"mnemonic": "fat twenty mean degree forget shell check candy immense awful flame next during february bulb bike sun wink theory day kiwi embrace peace lunch",
"mnemonic_length": 32,
"password": "passwoid"
},
"id": 1
}