Skip to content

Commit eae744c

Browse files
authored
Merge pull request #85 from MostroP2P/trade-index-fn
Trade index fn
2 parents 20895fd + 8e5fa70 commit eae744c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mostro-core"
3-
version = "0.6.26"
3+
version = "0.6.27"
44
edition = "2021"
55
license = "MIT"
66
authors = ["Francisco Calderón <negrunch@grunch.dev>"]

src/message.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,4 +410,11 @@ impl MessageKind {
410410
}
411411
(false, 0)
412412
}
413+
414+
pub fn trade_index(&self) -> i64 {
415+
if let Some(index) = self.trade_index {
416+
return index;
417+
}
418+
0
419+
}
413420
}

0 commit comments

Comments
 (0)