From 23f977482c16816ae1b8a77a189f5d3d815c38b5 Mon Sep 17 00:00:00 2001 From: lash Date: Mon, 9 May 2022 19:21:45 +0000 Subject: [PATCH] Correct method to property calls --- chainlib/eth/tx.py | 4 ++-- tests/test_tx.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chainlib/eth/tx.py b/chainlib/eth/tx.py index 55bb436..9dc8945 100644 --- 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 index 47497c4..da08a88 100644 --- 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):