mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Renaming getData -> getCode, remove getStorage, fix a bunch of JSONRPC
methods with more expansive error handling.
This commit is contained in:
		
							parent
							
								
									204f53c6ad
								
							
						
					
					
						commit
						1b09e5debb
					
				| @ -123,17 +123,6 @@ class WebThreeStubClient : public jsonrpc::Client | |||||||
|             else |             else | ||||||
|                 throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); |                 throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); | ||||||
|         } |         } | ||||||
|         Json::Value eth_getStorage(const std::string& param1, const std::string& param2) throw (jsonrpc::JsonRpcException) |  | ||||||
|         { |  | ||||||
|             Json::Value p; |  | ||||||
|             p.append(param1); |  | ||||||
|             p.append(param2); |  | ||||||
|             Json::Value result = this->CallMethod("eth_getStorage",p); |  | ||||||
|             if (result.isObject()) |  | ||||||
|                 return result; |  | ||||||
|             else |  | ||||||
|                 throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); |  | ||||||
|         } |  | ||||||
|         std::string eth_getStorageAt(const std::string& param1, const std::string& param2, const std::string& param3) throw (jsonrpc::JsonRpcException) |         std::string eth_getStorageAt(const std::string& param1, const std::string& param2, const std::string& param3) throw (jsonrpc::JsonRpcException) | ||||||
|         { |         { | ||||||
|             Json::Value p; |             Json::Value p; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user