mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 12:14:21 +01:00
pkg/client-sdk: expose IsLocked (#247)
* expose IsLocked * add test for IsLocked
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user