forked from pete001/php-eos-rpc-sdk
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
php-eos-rpc-sdk/src/WalletController.php
Lines 91 to 97 in 16de3ae
| 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
Labels
No labels