Skip to content

Commit b0239a9

Browse files
committed
abi.encodePacked -> abi.encode
use the standardized abi.encode for workload id calculation, as this is standardized and will ease the process of decoding it back to its constituent data for both onchain and offchain users. See https://docs.soliditylang.org/en/latest/abi-spec.html\#non-standard-packed-mode for more detailed info on the difference between the two functions.
1 parent 9c3c6f6 commit b0239a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/QuoteParser.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ library QuoteParser {
104104
function extractWorkloadId(TD10ReportBody memory td10ReportBody) internal pure returns (WorkloadId) {
105105
return WorkloadId.wrap(
106106
keccak256(
107-
abi.encodePacked(
107+
abi.encode(
108108
td10ReportBody.mrTd,
109109
td10ReportBody.rtMr0,
110110
td10ReportBody.rtMr1,

0 commit comments

Comments
 (0)