Skip to content

Commit

Permalink
revert: factory-contract from master
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl committed Dec 2, 2024
1 parent f4f4033 commit d386133
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions examples/factory-contract/high-level/build.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
use near_workspaces::cargo_near_build;
use std::str::FromStr;

use cargo_near_build::BuildOpts;
use cargo_near_build::{bon, camino, extended};

fn main() -> Result<(), Box<dyn std::error::Error + 'static>> {
// directory of target `status-message` sub-contract's crate
let workdir = "../../status-message";
// unix path to target `status-message` sub-contract's crate from root of the repo
let nep330_contract_path = "examples/status-message";

let manifest =
camino::Utf8PathBuf::from_str(workdir).expect("pathbuf from str").join("Cargo.toml");
let manifest = camino::Utf8PathBuf::from_str(workdir)
.expect("pathbuf from str")
.join("Cargo.toml");

let build_opts = BuildOpts::builder()
.manifest_path(manifest)
Expand Down
3 changes: 2 additions & 1 deletion examples/factory-contract/low-level/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::str::FromStr;

use near_workspaces::cargo_near_build;
use cargo_near_build::BuildOpts;
use cargo_near_build::{bon, camino, extended};

fn main() -> Result<(), Box<dyn std::error::Error + 'static>> {
// directory of target `status-message` sub-contract's crate
Expand Down

0 comments on commit d386133

Please sign in to comment.