add docs for nonce_latest

This commit is contained in:
Robert Habermeier 2016-05-26 12:52:33 +02:00
parent 5afa4621f9
commit a3b1cdb175
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ pub trait BlockChainClient : Sync + Send {
/// May not fail on BlockID::Latest.
fn nonce(&self, address: &Address, id: BlockID) -> Option<U256>;
/// Get address nonce at the latest block's state.
fn nonce_latest(&self, address: &Address) -> U256 {
self.nonce(address, BlockID::Latest)
.expect("nonce will return Some when given BlockID::Latest. nonce was given BlockID::Latest. \