From a03afaf12907ee0669edd5712e176e33989fc71b Mon Sep 17 00:00:00 2001 From: Alex Korpis Date: Wed, 22 Mar 2023 08:42:20 +0100 Subject: [PATCH] Store settlement data during trade inception (#6745) --- assets/eip-6123/contracts/SDC.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/eip-6123/contracts/SDC.sol b/assets/eip-6123/contracts/SDC.sol index 9c1cf84f4faea5..02616ea3b480cb 100644 --- a/assets/eip-6123/contracts/SDC.sol +++ b/assets/eip-6123/contracts/SDC.sol @@ -182,7 +182,8 @@ contract SDC is ISDC { uint256 hash = uint256(keccak256(abi.encode(_tradeData, _initialSettlementData))); pendingRequests[hash] = msg.sender; tradeID = Strings.toString(hash); - tradeData = _tradeData; // Set Trade Data to enable querying already in inception state + tradeData = _tradeData; // Set trade data to enable querying already in inception state + lastSettlementData = _initialSettlementData; // Store settlement data to make them available for confirming party emit TradeIncepted(msg.sender, tradeID, _tradeData); }