Skip to content

Commit

Permalink
chore: remove cargo-near-build as separate import in `[dev-dependen…
Browse files Browse the repository at this point in the history
…cies]` (examples) (#1263)

* chore: remove dep

* chore: update cargo_near_build dependency

* revert: `factory-contract` from master

---------

Co-authored-by: dj8yf0μl <[email protected]>
Co-authored-by: dj8yf0μl <[email protected]>
  • Loading branch information
3 people authored Dec 2, 2024
1 parent d7c16c8 commit da3f1f4
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion examples/fungible-token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ anyhow = "1.0"
near-sdk = { path = "../../near-sdk", features = ["unit-testing"] }
tokio = { version = "1.14", features = ["full"] }
near-workspaces = { version = "0.15", features = ["unstable"] }
cargo-near-build = "0.3.1"
rstest = "0.23.0"

[profile.release]
Expand Down
1 change: 1 addition & 0 deletions examples/fungible-token/tests/workspaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use near_workspaces::operations::Function;
use near_workspaces::result::ValueOrReceiptId;
use near_workspaces::{types::NearToken, Account, AccountId, Contract};
use rstest::{fixture, rstest};
use near_workspaces::cargo_near_build;

const ONE_YOCTO: NearToken = NearToken::from_yoctonear(1);

Expand Down
1 change: 0 additions & 1 deletion examples/lockable-fungible-token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ anyhow = "1.0"
tokio = { version = "1.14", features = ["full"] }
near-sdk = { path = "../../near-sdk", features = ["unit-testing"] }
near-workspaces = { version = "0.15", features = ["unstable"] }
cargo-near-build = "0.3.1"
rstest = "0.23.0"

[profile.release]
Expand Down
1 change: 1 addition & 0 deletions examples/lockable-fungible-token/tests/workspaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::str::FromStr;
use near_sdk::json_types::U128;
use near_workspaces::{types::NearToken, Account, Contract};
use rstest::{fixture, rstest};
use near_workspaces::cargo_near_build;

#[fixture]
fn initial_balance() -> U128 {
Expand Down
1 change: 0 additions & 1 deletion examples/non-fungible-token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ near-sdk = { path = "../../near-sdk", features = ["unit-testing"] }
tokio = { version = "1.14", features = ["full"] }
near-workspaces = { version = "0.15", features = ["unstable"] }
rstest = "0.23.0"
cargo-near-build = "0.3.1"

[profile.release]
codegen-units = 1
Expand Down
2 changes: 1 addition & 1 deletion examples/non-fungible-token/tests/workspaces/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use near_contract_standards::non_fungible_token::TokenId;
use near_workspaces::types::NearToken;
use near_workspaces::{Account, Contract};
use rstest::fixture;

use near_workspaces::cargo_near_build;
pub const TOKEN_ID: &str = "0";

pub async fn helper_mint(
Expand Down

0 comments on commit da3f1f4

Please sign in to comment.