def transform(self, tx_spec, target_spec_kind):
        spec_kind = self.classify_tx_spec(tx_spec)
        if spec_kind is None:
            raise InvalidTransformationError('Spec kind is not recognized!')
        if spec_kind == target_spec_kind:
            return tx_spec
        if spec_kind == 'basic':
            return self.transform_basic(tx_spec, target_spec_kind)
        elif spec_kind == 'operational':
            return self.transform_operational(tx_spec, target_spec_kind)
        elif spec_kind == 'composed':
            return self.transform_composed(tx_spec, target_spec_kind)
        elif spec_kind == 'signed':
            return self.transform_signed(tx_spec, target_spec_kind)
Using list as cur has some reference issues
dataset/ETHPy150Open chromaway/ngcccbase/ngcccbase/txcons.py/TransactionSpecTransformer.transform--crossover with--dataset/ETHPy150Open algorhythms/LeetCode/129 Sum Root to Leaf Numbers.py/Solution.dfs_error