Skip to content

Commit

Permalink
remove dirty code
Browse files Browse the repository at this point in the history
  • Loading branch information
preston4896 committed Dec 3, 2024
1 parent 291dc64 commit a3eaa96
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions contracts/PCCSRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,7 @@ contract PCCSRouter is IPCCSRouter, Ownable {
FmspcTcbDao tcbDao = FmspcTcbDao(fmspcTcbDaoAddr);
bytes32 key = tcbDao.FMSPC_TCB_KEY(uint8(TcbId.SGX), fmspc, 2);
TcbInfoBasic memory tcbInfo;
uint256 a = gasleft();
bytes memory data = tcbDao.getAttestedData(key);
uint256 b = gasleft();
console.log(a-b);
valid = data.length > 0;
if (valid) {
bytes memory encodedLevels;
Expand All @@ -169,10 +166,7 @@ contract PCCSRouter is IPCCSRouter, Ownable {
FmspcTcbDao tcbDao = FmspcTcbDao(fmspcTcbDaoAddr);
bytes32 key = tcbDao.FMSPC_TCB_KEY(uint8(id), fmspc, 3);
TcbInfoBasic memory tcbInfo;
uint256 a = gasleft();
bytes memory data = tcbDao.getAttestedData(key);
uint256 b = gasleft();
console.log(a-b);
valid = data.length > 0;
if (valid) {
bytes memory encodedLevels;
Expand Down

0 comments on commit a3eaa96

Please sign in to comment.