Skip to content

Commit

Permalink
Merge pull request #13 from step21/cleanup
Browse files Browse the repository at this point in the history
remove db functions in rpc
  • Loading branch information
Bernhard Mueller authored Oct 21, 2017
2 parents 0005724 + 59d4492 commit 8535755
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions mythril/rpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,44 +587,6 @@ def eth_submitHashrate(self, hash_rate, client_id):
'''
return self._call('eth_submitHashrate', [hex(hash_rate), client_id])

def db_putString(self, db_name, key, value):
'''
https://github.com/ethereum/wiki/wiki/JSON-RPC#db_putstring
TESTED
'''
warnings.warn('deprecated', DeprecationWarning)
return self._call('db_putString', [db_name, key, value])

def db_getString(self, db_name, key):
'''
https://github.com/ethereum/wiki/wiki/JSON-RPC#db_getstring
TESTED
'''
warnings.warn('deprecated', DeprecationWarning)
return self._call('db_getString', [db_name, key])

def db_putHex(self, db_name, key, value):
'''
https://github.com/ethereum/wiki/wiki/JSON-RPC#db_puthex
TESTED
'''
if not value.startswith('0x'):
value = '0x{}'.format(value)
warnings.warn('deprecated', DeprecationWarning)
return self._call('db_putHex', [db_name, key, value])

def db_getHex(self, db_name, key):
'''
https://github.com/ethereum/wiki/wiki/JSON-RPC#db_gethex
TESTED
'''
warnings.warn('deprecated', DeprecationWarning)
return self._call('db_getHex', [db_name, key])

def shh_version(self):
'''
https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_version
Expand Down

0 comments on commit 8535755

Please sign in to comment.