14 lines
210 B
Python
14 lines
210 B
Python
|
# external imports
|
||
|
from chainlib.eth.tx import raw
|
||
|
|
||
|
|
||
|
class EthDispatcher:
|
||
|
|
||
|
def __init__(self, conn):
|
||
|
self.conn = conn
|
||
|
|
||
|
|
||
|
def send(self, payload):
|
||
|
o = raw(payload)
|
||
|
self.conn.do(o)
|