Skip to content

Commit dc06a06

Browse files
committed
conflict resolution isnt my strongest suit, both in code and irl
1 parent 5632048 commit dc06a06

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/bases/EnclaveIdentityDao.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ abstract contract EnclaveIdentityDao is DaoBase, SigVerifyBase {
135135
uint256 version,
136136
bytes32 key,
137137
EnclaveIdentityJsonObj calldata enclaveIdentityObj
138-
) private view returns (bytes memory reqData) {
138+
) private returns (bytes memory reqData) {
139139
IdentityObj memory identity = EnclaveIdentityLib.parseIdentityString(enclaveIdentityObj.identityStr);
140140
if (id != uint256(identity.id)) {
141141
revert Enclave_Id_Mismatch();

src/bases/FmspcTcbDao.sol

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,7 @@ abstract contract FmspcTcbDao is DaoBase, SigVerifyBase {
132132
);
133133

134134
attestationId = _attestTcb(req, hash, key);
135-
_storeTcbInfoIssueEvaluation(
136-
key,
137-
tcbInfo.issueDate,
138-
tcbInfo.evaluationDataNumber
139-
);
135+
_storeTcbInfoIssueEvaluation(key, tcbInfo.issueDate, tcbInfo.nextUpdate, tcbInfo.evaluationDataNumber);
140136
emit UpsertedFmpscTcb(
141137
uint8(tcbInfo.id),
142138
tcbInfo.fmspc,
@@ -212,13 +208,6 @@ abstract contract FmspcTcbDao is DaoBase, SigVerifyBase {
212208
}
213209
reqData = abi.encode(tcbInfo, module, encodedModuleIdentities, encodedTcbLevels, tcbInfoObj.tcbInfoStr, tcbInfoObj.signature);
214210
}
215-
216-
_storeTcbInfoIssueEvaluation(
217-
key,
218-
tcbInfo.issueDate,
219-
tcbInfo.nextUpdate,
220-
tcbInfo.evaluationDataNumber
221-
);
222211
}
223212

224213
function _validateTcbInfo(TcbInfoJsonObj calldata tcbInfoObj) private view {

0 commit comments

Comments
 (0)