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

@@ -196,6 +196,10 @@ func (a *arkClient) Lock(ctx context.Context, pasword string) error {
return a.wallet.Lock(ctx, pasword)
}
func (a *arkClient) IsLocked(ctx context.Context) bool {
return a.wallet.IsLocked()
}
func (a *arkClient) Receive(ctx context.Context) (string, string, error) {
offchainAddr, onchainAddr, err := a.wallet.NewAddress(ctx, false)
if err != nil {