Bonfida / token-vesting

A Vesting Contract for the Solana Blockchain
https://vesting.bonfida.org/
Other
252 stars 167 forks source link

error compiling CLI - no method named `get_latest_blockhash` found for struct `RpcClient` in the current scope #28

Closed alex-3881 closed 2 years ago

alex-3881 commented 2 years ago

when compiling CLI (cargo build in cli folder), build fails with the screenshoted error error

alex-3881 commented 2 years ago

changes from let recent_blockhash = rpc_client.get_latest_blockhash().unwrap(); to let recent_blockhash = rpc_client.get_recent_blockhash().unwrap().0; on lines 88, 140, 183 seemed to fix it, everything compiled and seems to work

dr497 commented 2 years ago

This should fix it https://github.com/Bonfida/token-vesting/commit/cea0793ca0a5e37cc3dd81d446b5630fdbf1ac1d

Thanks for opening the issue!