fix TxnAuthorAgreementDisableHandler
@@ -41,10 +41,11 @@ class TxnAuthorAgreementDisableHandler(BaseTAAHandler):
serialize=False, get_value=True)
for encode_key, encode_data in taa_list.items():
taa = rlp_decode(encode_data)
- taa = self._decode_state_value(taa[0])[0]
+ taa, last_seq_no, last_update_time = self._decode_state_value(taa[0])
digest = StaticTAAHelper.get_digest_from_state_key(encode_key)
if TXN_AUTHOR_AGREEMENT_RETIREMENT_TS not in taa or taa.get(TXN_AUTHOR_AGREEMENT_RETIREMENT_TS, 0) > txn_time:
self._set_taa_to_state(digest, seq_no, txn_time, taa[TXN_AUTHOR_AGREEMENT_TEXT],
- taa[TXN_AUTHOR_AGREEMENT_VERSION], taa[TXN_AUTHOR_AGREEMENT_RATIFICATION_TS],
+ taa[TXN_AUTHOR_AGREEMENT_VERSION],
+ taa.get(TXN_AUTHOR_AGREEMENT_RATIFICATION_TS, last_update_time),
retirement_ts=txn_time)
self.state.remove(StaticTAAHelper.state_path_taa_latest())
