use the long revive version string in the contract metadata (#109)

This commit is contained in:
Cyrill Leutwiler
2024-10-31 14:52:06 +01:00
committed by GitHub
parent 173ace72cb
commit 9267a2af02
2 changed files with 7 additions and 7 deletions
+1 -2
View File
@@ -89,9 +89,8 @@ impl Contract {
let metadata = Metadata::new(
self.metadata_json.take(),
version.default.clone(),
version.long.clone(),
version.l2_revision.clone(),
semver::Version::parse(env!("CARGO_PKG_VERSION")).expect("Always valid"),
optimizer.settings().to_owned(),
);
let metadata_json = serde_json::to_value(&metadata).expect("Always valid");