Skip to content

Commit 6800dcd

Browse files
committed
docs: add comments how aleo handles missing blocks & transactions
1 parent 3dc7ef5 commit 6800dcd

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

  • rust/main/chains/hyperlane-aleo/src/provider

rust/main/chains/hyperlane-aleo/src/provider/tests.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,20 @@ async fn test_get_chain_metrics() {
119119
H256::from_str("2306b5c843f34abe2bbac9e6f2bcfdda0926b50cd6f736dfd419aceed6b7c710").unwrap()
120120
);
121121
}
122+
123+
// Missing blocks or transactions are indicated by corresponding HTTP responses where Reqwest handles the errors.
124+
// Following message can be expected in such cases:
125+
//
126+
// Err(Other(ReqwestError(reqwest::Error {
127+
// kind: Status(404),
128+
// url: Url {
129+
// scheme: "https",
130+
// cannot_be_a_base: false,
131+
// username: "",
132+
// password: None,
133+
// host: Some(Domain("api.explorer.provable.com")),
134+
// port: None,
135+
// path: "/v1/mainnet//transaction/at16e9kg860d3d44yvyqswp8drwm249h2s8pwv7ylalzhcg...",
136+
// ...
137+
// }
138+
// })))

0 commit comments

Comments
 (0)