Skip to content

Commit

Permalink
todo: remove introduced todos
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl committed Nov 13, 2024
1 parent 7be211e commit b4b3dff
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions examples/fungible-token/tests/workspaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ async fn register_user(contract: &Contract, account_id: &AccountId) -> anyhow::R
Ok(())
}

// TODO: in order to be able to use a once fixture from rstest (which uses std::sync::OnceLock<T>)
// https://docs.rs/rstest/0.16.0/rstest/attr.fixture.html#once-fixture
// or std::sync::LazyLock<T, F> as in neardevhub-contract
// for [near_workspaces::compile_project](https://github.com/near/near-workspaces-rs/blob/main/workspaces/src/cargo/mod.rs#L8)
// `tokio::fs::read` has to be replaced with `std::fs::read`
// and the function made NON-async
fn build_contract(path: &str, contract_name: &str) -> Vec<u8> {
let artifact = cargo_near_build::build(cargo_near_build::BuildOpts {
manifest_path: Some(
Expand Down
1 change: 0 additions & 1 deletion examples/mission-control/src/mission_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ mod tests {
);
}

// TODO: add more near_workspaces tests for logic of specifically this contract
// this only tests that contract can be built with ABI and responds to __contract_abi
// view call
#[tokio::test]
Expand Down
1 change: 0 additions & 1 deletion examples/status-message/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ mod tests {
assert_eq!(get_logs(), vec!["get_status for account_id francis.near"])
}

// TODO: add more near_workspaces tests for logic of specifically this contract
// this only tests that contract can be built with ABI and responds to __contract_abi
// view call
#[tokio::test]
Expand Down
1 change: 0 additions & 1 deletion examples/test-contract/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ mod tests {
contract.test_panic_macro();
}

// TODO: add more near_workspaces tests for logic of specifically this contract
// this only tests that contract can be built with ABI and responds to __contract_abi
// view call
#[tokio::test]
Expand Down
1 change: 0 additions & 1 deletion examples/versioned/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ mod tests {
assert_eq!(contract.get_deposit(&bob()), Some(&NearToken::from_yoctonear(8)));
}

// TODO: add more near_workspaces tests for logic of specifically this contract
// this only tests that contract can be built with ABI and responds to __contract_abi
// view call
#[tokio::test]
Expand Down

0 comments on commit b4b3dff

Please sign in to comment.