Skip to content

Commit

Permalink
chore: tweak test case
Browse files Browse the repository at this point in the history
  • Loading branch information
quake committed Mar 20, 2024
1 parent 9c0cad8 commit 4fae563
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 39 deletions.
4 changes: 2 additions & 2 deletions ckb-auth-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ edition = "2021"
default = ["dynamic-library-memory-200"]
ckb2023 = ["ckb-std/ckb2023"]

enable-dynamic-library = ["lazy_static"]
enable-dynamic-library = ["lazy_static", "ckb-std/dlopen-c", "ckb-std/ckb-types"]
dynamic-library-memory-200 = ["enable-dynamic-library"]
# enable these features when memory is not enough
dynamic-library-memory-400 = ["enable-dynamic-library"]
dynamic-library-memory-600 = ["enable-dynamic-library"]

[dependencies]
ckb-std = "0.15.0"
ckb-std = { version = "0.15", default-features = false }
lazy_static = { version = "1.4.0", optional = true, features = ["spin_no_std"] }

[target.'cfg(target_arch = "riscv64")'.dependencies]
Expand Down
43 changes: 21 additions & 22 deletions tests/auth-c-tests/Cargo.lock

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

26 changes: 13 additions & 13 deletions tests/auth-rust-lock/Cargo.lock

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

2 changes: 1 addition & 1 deletion tests/auth-rust-lock/contracts/auth-rust-demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ckb2023 = ["ckb-auth-rs/ckb2023", "ckb-std/ckb2023"]
enable-dynamic-library = ["ckb-auth-rs/dynamic-library-memory-600"]

[dependencies]
ckb-std = "0.14.3"
ckb-std = { version = "0.15", default-features = false, features = ["allocator", "ckb-types"] }
ckb-auth-rs = { path = "../../../../ckb-auth-rs", default-features = false }
log = { version = "0.4.17", default-features = false }
hex = { version = "0.4.3", default-features = false, features = ["alloc"]}
2 changes: 1 addition & 1 deletion tests/auth-rust-lock/contracts/auth-rust-demo/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn main() -> Result<(), Error> {
0 => ScriptHashType::Data,
1 => ScriptHashType::Type,
2 => ScriptHashType::Data1,
4 => ScriptHashType::Data1, // TODO ckb-std 0.14.3 does not support Data2 yet
4 => ScriptHashType::Data2,
_ => {
return Err(Error::ArgsError);
}
Expand Down

0 comments on commit 4fae563

Please sign in to comment.