pkg/client-sdk: expose IsLocked (#247)

* expose IsLocked

* add test for IsLocked
This commit is contained in:
Marco Argentieri
2024-08-14 14:07:15 +02:00
committed by GitHub
parent e79819cca8
commit 2e6fa7fe6d
5 changed files with 21 additions and 0 deletions

View File

@@ -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)
})
}
}