Skip to content

Commit

Permalink
client-specific setting to preserve case methods
Browse files Browse the repository at this point in the history
Following:
#26

Add 'preserve_case' => true in client-specific settings
e.g:
'ethereum' => [
        'scheme'   => 'http',
        'host'     => 'localhost',
        'port'     => 8545,
        'ca'       => null,
        'preserve_case' => true,
],
  • Loading branch information
M-Shahbaz authored Nov 15, 2018
1 parent 4ff7a2a commit dc183aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ protected function makeJson($method, $params = [])
{
return [
'json' => [
'method' => strtolower($method),
'method' => isset($this->config['preserve_case']) ? $method : strtolower($method),
'params' => (array) $params,
'id' => $this->rpcId++,
],
Expand Down

0 comments on commit dc183aa

Please sign in to comment.