From a3b1cdb175b1722bda1f09b87e1cfd133876f814 Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Thu, 26 May 2016 12:52:33 +0200 Subject: [PATCH] add docs for nonce_latest --- ethcore/src/client/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ethcore/src/client/mod.rs b/ethcore/src/client/mod.rs index 39f007281..7ffa0c5d8 100644 --- a/ethcore/src/client/mod.rs +++ b/ethcore/src/client/mod.rs @@ -69,6 +69,7 @@ pub trait BlockChainClient : Sync + Send { /// May not fail on BlockID::Latest. fn nonce(&self, address: &Address, id: BlockID) -> Option; + /// 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. \