Skip to content

Commit

Permalink
updating how to fetch the timestamp when fetching a block
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard-Voiculescu committed Jul 2, 2024
1 parent e3eaa27 commit c74ae15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ func fetchTimestampFromExtrinsics(extrinsics []*parser.Extrinsic[types.MultiAddr
if extrinsic.Name == TIMESTAMP_SET_NAME {
for _, callField := range extrinsic.CallFields {
if callField.Name == TIMESTAMP_FIELD_NAME {
// return callField.Value.(uint64)
return 0
val := callField.Value.(types.UCompact)
return uint64(val.Int64())
}
}
}
Expand Down

0 comments on commit c74ae15

Please sign in to comment.