Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
fix transaction send
Browse files Browse the repository at this point in the history
  • Loading branch information
michavie committed Jan 9, 2023
1 parent 9fe694f commit b4e93ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Api/Endpoints/TransactionEndpoints.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ public function getByHash(string $txHash): TransactionDetailed
public function send(Transaction $tx): TransactionSendResult
{
return TransactionSendResult::fromApiResponse(
$this->client->request('POST', "/transactions", $tx->toSendable())
$this->client->request('POST', "/transactions", [
'json' => $tx->toSendable(),
]),
);
}
}

0 comments on commit b4e93ec

Please sign in to comment.