Skip to content

Commit

Permalink
[aptos-rest-client] Change get-block-info for the rest client
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnazario committed Aug 15, 2022
1 parent d18acd2 commit 734c6e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/aptos-rest-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ impl Client {
.await
}

pub async fn get_block_info(&self, version: u64) -> Result<Response<BlockInfo>> {
self.get(self.build_path(&format!("blocks/{}", version))?)
pub async fn get_block_info(&self, version: u64) -> Result<Response<Block>> {
self.get(self.build_path(&format!("blocks/by_version/{}", version))?)
.await
}

Expand Down
4 changes: 0 additions & 4 deletions testsuite/smoke-test/src/rosetta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 734c6e1

Please sign in to comment.