Skip to content

Commit

Permalink
Store settlement data during trade inception (ethereum#6745)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kourouta authored and axelcabee committed May 6, 2023
1 parent 6f0ac3f commit a03afaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/eip-6123/contracts/SDC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a03afaf

Please sign in to comment.