-
Notifications
You must be signed in to change notification settings - Fork 26
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
create-wallet should fail when creating a wallet with an existing salt value #42
Comments
Hi @chrisli30 We agree before creating a wallet is an idempotent action. it won't failed. It won't created duplicate sale wallet. The response was a displaying issue, due to us always pre-pend the default wallet, without checking whether user has create the default wallet. You can try to see the behaviour:
Example below I call created 4 times, but it only show 2
|
I understand that we agreed on the silent succeed behavior of createWallet, but that doesn’t seem to comply with the norm of a create operation, which is usually not an idempotent action. What do you think of renaming the operation to Note: #39 has added tests around this scenario. |
this is done. |
I disagree but this is a small change to make so I can change quickly. |
Fixed in #59 |
Repro steps with the below commands in order
There shouldn’t be two rows with salt 0. Normally re-creating an existing entity should result in failure in API response.
We will need a test case in ava-sdk to cover this scenario.
Full trace:
The text was updated successfully, but these errors were encountered: