mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-18 04:34:19 +01:00
pkg/client-sdk: expose IsLocked (#247)
* expose IsLocked * add test for IsLocked
This commit is contained in:
@@ -134,6 +134,15 @@ func TestWallet(t *testing.T) {
|
||||
|
||||
err = walletSvc.Lock(ctx, "")
|
||||
require.NoError(t, err)
|
||||
|
||||
locked := walletSvc.IsLocked()
|
||||
require.True(t, locked)
|
||||
|
||||
_, err = walletSvc.Unlock(ctx, password)
|
||||
require.NoError(t, err)
|
||||
|
||||
locked = walletSvc.IsLocked()
|
||||
require.False(t, locked)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user