Pārlūkot izejas kodu

Revert "Ensure build works with latest contract-build and contract-metadata (#1466)" (#1467)

The contract-build crate 3.1 was yanked:
https://crates.io/crates/contract-build/versions

This reverts commit 665e550c0d5591c0453ddd2f06d455f9fe078d4a.

Signed-off-by: Sean Young <sean@mess.org>
Sean Young 2 gadi atpakaļ
vecāks
revīzija
e90cefa705
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 2 2
      Cargo.toml
  2. 1 1
      src/abi/polkadot.rs

+ 2 - 2
Cargo.toml

@@ -61,8 +61,8 @@ petgraph = "0.6.3"
 wasmparser = "0.107.0"
 wasm-encoder = "0.29"
 toml = "0.7"
-wasm-opt = { version = "0.113.0", optional = true }
-contract-build = { version = "3.1", optional = true }
+wasm-opt = { version = "0.112.0", optional = true }
+contract-build = { version = "3.0.1", optional = true }
 
 
 [dev-dependencies]

+ 1 - 1
src/abi/polkadot.rs

@@ -537,5 +537,5 @@ pub fn metadata(
     let project_json = serde_json::to_value(gen_project(contract_no, ns)).unwrap();
     let abi = serde_json::from_value(project_json).unwrap();
 
-    serde_json::to_value(ContractMetadata::new(source, contract, None, None, abi)).unwrap()
+    serde_json::to_value(ContractMetadata::new(source, contract, None, abi)).unwrap()
 }