diff --git a/crates/aptos-rest-client/src/lib.rs b/crates/aptos-rest-client/src/lib.rs index 9c86622d4525a..91b5d0f222fd7 100644 --- a/crates/aptos-rest-client/src/lib.rs +++ b/crates/aptos-rest-client/src/lib.rs @@ -102,8 +102,8 @@ impl Client { .await } - pub async fn get_block_info(&self, version: u64) -> Result> { - self.get(self.build_path(&format!("blocks/{}", version))?) + pub async fn get_block_info(&self, version: u64) -> Result> { + self.get(self.build_path(&format!("blocks/by_version/{}", version))?) .await } diff --git a/testsuite/smoke-test/src/rosetta.rs b/testsuite/smoke-test/src/rosetta.rs index cbf9de0254ba3..5d434dc93a8a1 100644 --- a/testsuite/smoke-test/src/rosetta.rs +++ b/testsuite/smoke-test/src/rosetta.rs @@ -383,8 +383,6 @@ async fn test_block() { assert!(newer_block.timestamp >= latest_block.timestamp); } -// TODO: Unignore this when we have get_block_info for the v1 API. -#[ignore] #[tokio::test] async fn test_block_transactions() { let (swarm, cli, _faucet, rosetta_client) = setup_test(1, 2).await; @@ -506,8 +504,6 @@ async fn test_block_transactions() { } } -// TODO: Unignore this when we have get_block_info for the v1 API. -#[ignore] #[tokio::test] async fn test_invalid_transaction_gas_charged() { let (swarm, cli, _faucet, rosetta_client) = setup_test(1, 1).await;