diff --git a/cmd/crates/soroban-spec-tools/src/contract.rs b/cmd/crates/soroban-spec-tools/src/contract.rs index d48bbdd79..bca72f533 100644 --- a/cmd/crates/soroban-spec-tools/src/contract.rs +++ b/cmd/crates/soroban-spec-tools/src/contract.rs @@ -116,7 +116,7 @@ impl Display for Spec { match env_meta_entry { ScEnvMetaEntry::ScEnvMetaKindInterfaceVersion(v) => { let protocol = v >> 32; - let interface = v & 0xffffffff; + let interface = v & 0xffff_ffff; writeln!(f, " • Interface Version: {v} (protocol: {protocol}, interface: {interface})")?; } }