Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"PHP": "^7.2|^8.0",
"kornrunner/keccak": "~1.0",
"phpseclib/phpseclib": "~2.0.30",
"ext-mbstring": "*"
"ext-mbstring": "*",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "~8.0|~9.0"
Expand Down
4 changes: 1 addition & 3 deletions src/RequestManagers/HttpRequestManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@
use InvalidArgumentException;
use Psr\Http\Message\StreamInterface;
use RuntimeException as RPCException;
use Psr\Http\Message\ResponseInterface;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Client;
use Web3\RequestManagers\RequestManager;
use Web3\RequestManagers\IRequestManager;

class HttpRequestManager extends RequestManager implements IRequestManager
{
Expand Down Expand Up @@ -48,6 +45,7 @@ public function __construct($host, $timeout = 1)
* @param string $payload
* @param callable $callback
* @return void
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function sendPayload($payload, $callback)
{
Expand Down