Skip to content

Lock method doesn't work #5

@vv12131415

Description

@vv12131415

public function lock(string $name = 'defaut'): string
{
return $this->client->post(
$this->buildUrl('/wallet/lock'),
"\"$name\""
);
}

this part of the code doesn't work (at least it doesn't lock wallet with an error)

error

{
   "code":500,
   "message":"Internal Service Error",
   "error":{
      "code":3120002,
      "name":"wallet_nonexistent_exception",
      "what":"Nonexistent wallet",
      "details":[
         {
            "message":"Wallet not found: \"default\"",
            "file":"wallet_manager.cpp",
            "line_number":170,
            "method":"lock"
         }
      ]
   }
}

it should be without escaped quotes (at least when the adapter is guzzle). Like this

     public function lock(string $name = 'defaut'): string 
     { 
         return $this->client->post( 
             $this->buildUrl('/wallet/lock'), 
             $name 
         ); 
     }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions