Skip to content

Commit

Permalink
Merge pull request #128 from sc0Vu/remove-get-compilers
Browse files Browse the repository at this point in the history
Remove eth_getCompilers
  • Loading branch information
sc0Vu authored Dec 12, 2018
2 parents 01a7040 + 0d415ce commit fe5dc8e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 77 deletions.
2 changes: 1 addition & 1 deletion src/Eth.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Eth
* @var array
*/
private $allowedMethods = [
'eth_protocolVersion', 'eth_syncing', 'eth_coinbase', 'eth_mining', 'eth_hashrate', 'eth_gasPrice', 'eth_accounts', 'eth_blockNumber', 'eth_getBalance', 'eth_getStorageAt', 'eth_getTransactionCount', 'eth_getBlockTransactionCountByHash', 'eth_getBlockTransactionCountByNumber', 'eth_getUncleCountByBlockHash', 'eth_getUncleCountByBlockNumber', 'eth_getUncleByBlockHashAndIndex', 'eth_getUncleByBlockNumberAndIndex', 'eth_getCode', 'eth_sign', 'eth_sendTransaction', 'eth_sendRawTransaction', 'eth_call', 'eth_estimateGas', 'eth_getBlockByHash', 'eth_getBlockByNumber', 'eth_getTransactionByHash', 'eth_getTransactionByBlockHashAndIndex', 'eth_getTransactionByBlockNumberAndIndex', 'eth_getTransactionReceipt', 'eth_getCompilers', 'eth_compileSolidity', 'eth_compileLLL', 'eth_compileSerpent', 'eth_getWork', 'eth_newFilter', 'eth_newBlockFilter', 'eth_newPendingTransactionFilter', 'eth_uninstallFilter', 'eth_getFilterChanges', 'eth_getFilterLogs', 'eth_getLogs', 'eth_submitWork', 'eth_submitHashrate'
'eth_protocolVersion', 'eth_syncing', 'eth_coinbase', 'eth_mining', 'eth_hashrate', 'eth_gasPrice', 'eth_accounts', 'eth_blockNumber', 'eth_getBalance', 'eth_getStorageAt', 'eth_getTransactionCount', 'eth_getBlockTransactionCountByHash', 'eth_getBlockTransactionCountByNumber', 'eth_getUncleCountByBlockHash', 'eth_getUncleCountByBlockNumber', 'eth_getUncleByBlockHashAndIndex', 'eth_getUncleByBlockNumberAndIndex', 'eth_getCode', 'eth_sign', 'eth_sendTransaction', 'eth_sendRawTransaction', 'eth_call', 'eth_estimateGas', 'eth_getBlockByHash', 'eth_getBlockByNumber', 'eth_getTransactionByHash', 'eth_getTransactionByBlockHashAndIndex', 'eth_getTransactionByBlockNumberAndIndex', 'eth_getTransactionReceipt', 'eth_compileSolidity', 'eth_compileLLL', 'eth_compileSerpent', 'eth_getWork', 'eth_newFilter', 'eth_newBlockFilter', 'eth_newPendingTransactionFilter', 'eth_uninstallFilter', 'eth_getFilterChanges', 'eth_getFilterLogs', 'eth_getLogs', 'eth_submitWork', 'eth_submitHashrate'
];

/**
Expand Down
58 changes: 0 additions & 58 deletions src/Methods/Eth/GetCompilers.php

This file was deleted.

18 changes: 0 additions & 18 deletions test/unit/EthApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -546,24 +546,6 @@ public function testGetUncleByBlockNumberAndIndex()
});
}

/**
* testGetCompilers
*
* @return void
*/
public function testGetCompilers()
{
$eth = $this->eth;

$eth->getCompilers(function ($err, $compilers) {
if ($err !== null) {
return $this->assertTrue($err !== null);
}
$this->assertTrue(is_array($compilers));
$this->assertEquals($compilers[0], 'solidity');
});
}

/**
* testCompileSolidity
*
Expand Down

0 comments on commit fe5dc8e

Please sign in to comment.