commit 23f977482c16816ae1b8a77a189f5d3d815c38b5
parent 20dfb641ff2da8855f58339fc049837442acbb60
Author: lash <dev@holbrook.no>
Date:   Mon,  9 May 2022 19:21:45 +0000
Correct method to property calls
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/chainlib/eth/tx.py b/chainlib/eth/tx.py
@@ -648,11 +648,11 @@ class Tx(BaseTx, Src):
         self.r = src.get('r')
         self.s = src.get('s')
 
-        self.status = Status.PENDING
+        #self.status = Status.PENDING
 
 
     def as_dict(self):
-        return self.src()
+        return self.src
 
 
     def apply_receipt(self, rcpt, strict=False):
diff --git a/tests/test_tx.py b/tests/test_tx.py
@@ -82,7 +82,7 @@ class TxTestCase(EthTesterCase):
         o = transaction(tx_hash_hex)
         tx_src = self.rpc.do(o)
         tx = Tx(tx_src) 
-        tx_bin = pack(tx.src(), self.chain_spec)
+        tx_bin = pack(tx.src, self.chain_spec)
 
 
     def test_tx_pack(self):