Skip to content

Commit

Permalink
Manual backport of #1883: Use contract-build 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ascjones committed Aug 22, 2023
1 parent 1b2e7cf commit 868d31d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/e2e/macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ proc-macro = true
[dependencies]
ink_ir = { version = "4.2.1", path = "../../ink/ir" }
cargo_metadata = "0.15.3"
contract-build = "2.0.2"
contract-build = "3.2.0"
derive_more = "0.99.17"
env_logger = "0.10.0"
log = "0.4.17"
Expand Down
6 changes: 5 additions & 1 deletion crates/e2e/macro/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
// limitations under the License.

use crate::ir;
use contract_build::ManifestPath;
use contract_build::{
ManifestPath,
Target,
};
use core::cell::RefCell;
use derive_more::From;
use proc_macro2::TokenStream as TokenStream2;
Expand Down Expand Up @@ -289,6 +292,7 @@ fn build_contract(path_to_cargo_toml: &str) -> String {
lint: false,
output_type: OutputType::HumanReadable,
skip_wasm_validation: false,
target: Target::Wasm,
};

match contract_build::execute(args) {
Expand Down

0 comments on commit 868d31d

Please sign in to comment.