Open crazybits opened 3 weeks ago
call get_block_by_height_bcs with below error
get_block_by_height_bcs
Err(Bcs(Custom("invalid value: integer 115, expected variant index 0 <= i < 5")))
115
Code snippet to reproduce
use aptos_sdk::rest_client::Client; let result = client.get_block_by_height_bcs(*block_num, true).await; info!("new block {:?}",result);
Stack trace/error message
> Err(Bcs(Custom("invalid value: integer `115`, expected variant index 0 <= i < 5")))
get block successfully
Please complete the following information:
the api work fine before, the error prompt in these two days, it may due to the aptos upgrade
issue solved after fallback rust sdk to tag aptos-node-v1.12.0, confirmed the issue is due to aptos upgrade
aptos-node-v1.12.0
🐛 Bug
call
get_block_by_height_bcs
with below errorTo reproduce
Code snippet to reproduce
Stack trace/error message
Expected Behavior
get block successfully
System information
Please complete the following information:
Additional context
the api work fine before, the error prompt in these two days, it may due to the aptos upgrade