Skip to content

Commit

Permalink
Output interface version parts (#1216)
Browse files Browse the repository at this point in the history
* Add soroban-spec-tools

* fix

* Output interface version parts

* fix clippy
  • Loading branch information
leighmcculloch authored Feb 28, 2024
1 parent c27f114 commit 31407a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/crates/soroban-spec-tools/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ impl Display for Spec {
for env_meta_entry in &self.env_meta {
match env_meta_entry {
ScEnvMetaEntry::ScEnvMetaKindInterfaceVersion(v) => {
writeln!(f, " • Interface Version: {v}")?;
let protocol = v >> 32;
let interface = v & 0xffff_ffff;
writeln!(f, " • Interface Version: {v} (protocol: {protocol}, interface: {interface})")?;
}
}
}
Expand Down

0 comments on commit 31407a4

Please sign in to comment.