-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The evolve-instruction was badly calculated, and thus only one recovery was possible. Unfortunately all accounts with a recovery cannot be recovered :(
- Loading branch information
Showing
3 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -180,12 +180,24 @@ func TestService_EmailRecover(t *testing.T) { | |
require.Equal(t, uint64(2000), newUserCoin.Value) | ||
require.Equal(t, contracts.SpawnerCoin, newUserCoin.Name) | ||
|
||
// Test wrong email | ||
reply, err := ts.s.EmailRecover(&EmailRecover{ | ||
Email: "[email protected]", | ||
}) | ||
require.Error(t, err) | ||
require.Equal(t, EREUnknown, reply.Status) | ||
|
||
// Test correct email | ||
ts.dummyEmail.Reset() | ||
reply, err = ts.s.EmailRecover(&EmailRecover{ | ||
Email: "[email protected]", | ||
}) | ||
// Need to wait for the update to go through the network. | ||
require.NoError(t, err) | ||
require.Equal(t, ERERecovered, reply.Status) | ||
time.Sleep(time.Second) | ||
|
||
// Test correct email a 2nd time | ||
ts.dummyEmail.Reset() | ||
reply, err = ts.s.EmailRecover(&EmailRecover{ | ||
Email: "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters