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

Method predicate

crates/execution/payload/src/validity.rs:191–193  ·  view source on GitHub ↗

Returns the predicate an indexed transaction is parked under.

(&self, transaction_hash: TxHash)

Source from the content-addressed store, hash-verified

189
190 /// Returns the predicate an indexed transaction is parked under.
191 pub fn predicate(&self, transaction_hash: TxHash) -> Option<&ValidityPredicate> {
192 self.transactions.get(&transaction_hash).map(|entry| &entry.predicate)
193 }
194
195 /// Returns an indexed transaction and the predicate it is parked under, with one lookup.
196 pub fn entry(&self, transaction_hash: TxHash) -> Option<(&T, &ValidityPredicate)> {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected