From 31407a4759b58cf99131f082bfb3c6d0806b454d Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Wed, 28 Feb 2024 23:00:20 +1000 Subject: [PATCH] Output interface version parts (#1216) * Add soroban-spec-tools * fix * Output interface version parts * fix clippy --- cmd/crates/soroban-spec-tools/src/contract.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/crates/soroban-spec-tools/src/contract.rs b/cmd/crates/soroban-spec-tools/src/contract.rs index 2d0d857cd..bca72f533 100644 --- a/cmd/crates/soroban-spec-tools/src/contract.rs +++ b/cmd/crates/soroban-spec-tools/src/contract.rs @@ -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})")?; } } }