Skip to content

Commit

Permalink
Upgrade ckb-testtool to 0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xxuejie committed Jan 4, 2024
1 parent 9e3ee13 commit c69764d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,3 @@ However, there are still intricacies one needs to pay attention to:
* Unless `TOP` is already set, all makefiles will use current running directory as the `TOP` value. This explains when we chdir to `contracts/stack-reorder` to run a make task, we need to manually set the `TOP` value: in a workspace setup, `TOP` must always point to the top of the workspace.
* All submodules, are expected to be put in `TOP`/deps. It might work if you put them in other folders, but we strongly recommend that this convention to be respected, so as to be nice to other makefiles.
* When workspace-level make process needs to call into contract-level make process for different tasks, variables such as `TOP` (and others, see the top-level makefile for details, search for `export` to locate the exact location) will be passed from the parent make process, to child make process, so as to properly initialize the contract-level make process to respect the workspace layout. This is why `make run` does not need individual setting on `TOP`, despite we want to run the make task on a specific contract.

## Blocker

This sample is pending on the following PRs to land in a proper release:

* <https://github.com/nervosnetwork/capsule/pull/137>

For now, we have to use git dependencies for certain crates.
2 changes: 1 addition & 1 deletion crates/big-cell-fetcher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ version = "0.15.0"
features = ["build-with-clang", "simulator"]

[target.'cfg(all(target_arch = "x86_64", unix))'.dev-dependencies]
ckb-testtool = { git = "https://github.com/nervosnetwork/capsule", rev = "984a071" }
ckb-testtool = "0.10.1"
rusty-fork = "0.3.0"
rand = "0.8.5"
serde_json = "1.0"
Expand Down
3 changes: 1 addition & 2 deletions tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ version = "0.1.0"
edition = "2021"

[dependencies]
# Waiting for https://github.com/nervosnetwork/capsule/pull/137 to land in a proper release
ckb-testtool = { git = "https://github.com/nervosnetwork/capsule", rev = "984a071" }
ckb-testtool = "0.10.1"
serde_json = "1.0"

0 comments on commit c69764d

Please sign in to comment.