```\n    require(\n        _commitment.principalTokenAddress ==\n            commitments[_commitmentId].principalTokenAddress,\n        "Principal token address cannot be updated."\n    );\n    require(\n        _commitment.marketId == commitments[_commitmentId].marketId,\n        "Market Id cannot be updated."\n    );\n\n    commitments[_commitmentId] = _commitment;\n```\n