Fix get cli tool, src generation bug
This commit is contained in:
parent
23f977482c
commit
7b7496a374
@ -523,7 +523,7 @@ class TxResult(BaseTxResult, Src):
|
|||||||
def apply_src(self, v):
|
def apply_src(self, v):
|
||||||
self.contract = None
|
self.contract = None
|
||||||
|
|
||||||
super(TxResult, self).apply_src(v)
|
v = super(TxResult, self).apply_src(v)
|
||||||
|
|
||||||
self.set_hash(v['transaction_hash'])
|
self.set_hash(v['transaction_hash'])
|
||||||
try:
|
try:
|
||||||
@ -697,8 +697,8 @@ class Tx(BaseTx, Src):
|
|||||||
:returns: Wire format, in hex
|
:returns: Wire format, in hex
|
||||||
"""
|
"""
|
||||||
if self.wire == None:
|
if self.wire == None:
|
||||||
b = pack(self.src(), chain_spec)
|
b = pack(self.src, chain_spec)
|
||||||
self.wire = add_0x(b.hex())
|
self.set_wire(add_0x(b.hex()))
|
||||||
return self.wire
|
return self.wire
|
||||||
|
|
||||||
|
|
||||||
@ -750,7 +750,7 @@ input {}
|
|||||||
if self.status != Status.PENDING:
|
if self.status != Status.PENDING:
|
||||||
s += """gas_used {}
|
s += """gas_used {}
|
||||||
""".format(
|
""".format(
|
||||||
self.gas_used,
|
self.result.fee_cost,
|
||||||
)
|
)
|
||||||
|
|
||||||
s += 'status ' + self.status.name + '\n'
|
s += 'status ' + self.status.name + '\n'
|
||||||
@ -762,7 +762,7 @@ tx_index {}
|
|||||||
""".format(
|
""".format(
|
||||||
self.block.number,
|
self.block.number,
|
||||||
self.block.hash,
|
self.block.hash,
|
||||||
self.tx_index,
|
self.result.tx_index,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -775,7 +775,7 @@ tx_index {}
|
|||||||
if self.wire != None:
|
if self.wire != None:
|
||||||
s += """src {}
|
s += """src {}
|
||||||
""".format(
|
""".format(
|
||||||
self.wire,
|
str(self.wire),
|
||||||
)
|
)
|
||||||
|
|
||||||
return s
|
return s
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
funga-eth~=0.6.1
|
funga-eth~=0.6.1
|
||||||
pysha3==1.0.2
|
pysha3==1.0.2
|
||||||
hexathon~=0.1.6
|
hexathon~=0.1.7
|
||||||
websocket-client==0.57.0
|
websocket-client==0.57.0
|
||||||
potaahto~=0.1.1
|
potaahto~=0.1.1
|
||||||
chainlib~=0.1.2
|
chainlib~=0.2.0
|
||||||
confini~=0.6.0
|
confini~=0.6.0
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = chainlib-eth
|
name = chainlib-eth
|
||||||
version = 0.2.0
|
version = 0.2.1
|
||||||
description = Ethereum implementation of the chainlib interface
|
description = Ethereum implementation of the chainlib interface
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
|
Loading…
Reference in New Issue
Block a user