MCPcopy Create free account
hub / github.com/base/base / get

Method get

crates/execution/txpool/src/limits.rs:43–45  ·  view source on GitHub ↗
(&self, account: &Address)

Source from the content-addressed store, hash-verified

41 /// Returns the current inflight count for `account`.
42 #[must_use]
43 pub fn get(&self, account: &Address) -> u32 {
44 self.counts.get(account).copied().unwrap_or(0)
45 }
46
47 /// Attempts to reserve one slot for `account` against `cap`. Returns `true`
48 /// and increments the count if the account is below `cap`; returns `false`

Calls

no outgoing calls