Skip to content

Commit ce52896

Browse files
committed
store: Fix syntax error in SubgraphError::try_from
1 parent f7e3d8f commit ce52896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

store/postgres/src/detail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl TryFrom<ErrorDetail> for SubgraphError {
148148
// has a hash. Conversely, it is also possible for an error to not have a
149149
// hash. In both cases, use a block pointer of `None`
150150
let block_ptr = match (block_number, block_hash) {
151-
(Some(number), Some(hash)) => EthereumBlockPointer::from(number as u64, hash),
151+
(Some(number), Some(hash)) => Some(EthereumBlockPointer::from((hash, number as u64))),
152152
_ => None,
153153
};
154154
let subgraph_id = SubgraphDeploymentId::new(subgraph_id).map_err(|id| {

0 commit comments

Comments
 (0)