feature: copied the contract memory from QT client