chore: use u64 for payloadattributes directly (#5327)

This commit is contained in:
Matthias Seitz
2023-11-06 16:59:08 +01:00
committed by GitHub
parent dea22ada84
commit 164b486d9b
7 changed files with 80 additions and 82 deletions

View File

@ -36,7 +36,7 @@ impl<'a> PayloadOrAttributes<'a> {
pub(crate) fn timestamp(&self) -> u64 {
match self {
Self::ExecutionPayload { payload, .. } => payload.timestamp(),
Self::PayloadAttributes(attributes) => attributes.timestamp.to(),
Self::PayloadAttributes(attributes) => attributes.timestamp,
}
}