MCPcopy Create free account
hub / github.com/evilsocket/cake / is_eos

Method is_eos

cake-core/src/models/common/config.rs:13–18  ·  view source on GitHub ↗

Check if the given token ID is an EOS token.

(&self, token_id: u32)

Source from the content-addressed store, hash-verified

11impl EosTokenId {
12 /// Check if the given token ID is an EOS token.
13 pub fn is_eos(&self, token_id: u32) -> bool {
14 match self {
15 EosTokenId::Single(id) => *id == token_id,
16 EosTokenId::Multiple(ids) => ids.contains(&token_id),
17 }
18 }
19}
20
21impl<'de> serde::Deserialize<'de> for EosTokenId {

Callers 1

next_tokenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected