Skip to content

Commit

Permalink
fix kevaPut response
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost committed Dec 6, 2023
1 parent 49dd808 commit b6e5416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,9 @@ public function kevaPut(

$response = $this->_execute();

if (!empty($response['txid']) && is_string($response['txid']))
if (!empty($response['result']) && !empty($response['result']['txid']) && is_string($response['result']['txid']))
{
return $response['txid'];
return $response['result']['txid'];
}

return null;
Expand Down

0 comments on commit b6e5416

Please sign in to comment.