Skip to content

Commit

Permalink
Update dependencies: ckb-std
Browse files Browse the repository at this point in the history
  • Loading branch information
joii2020 committed Oct 30, 2024
1 parent b7c9e5c commit 47061b6
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/Cargo.lock

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

3 changes: 3 additions & 0 deletions tests/contracts/exec-child/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ ckb_std::entry!(program_entry);
default_alloc!();
use ckb_std_wrapper::ckb_std;

#[cfg(not(any(feature = "native-simulator", test)))]
use alloc::format;

pub fn program_entry() -> i8 {
ckb_std::debug!("This is a sample contract exec-child!");

Expand Down
3 changes: 3 additions & 0 deletions tests/contracts/exec-parent/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ use ckb_std::ckb_types::prelude::Unpack;
use ckb_std::debug;
use core::ffi::CStr;

#[cfg(not(any(feature = "native-simulator", test)))]
use alloc::format;

pub fn program_entry() -> i8 {
debug!("This is a sample contract exec-parent!");

Expand Down
3 changes: 3 additions & 0 deletions tests/contracts/spawn-cases/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ use ckb_std_wrapper::ckb_std;
use core::ffi::CStr;
use spawn_cmd::SpawnCasesCmd;

#[cfg(not(any(feature = "native-simulator", test)))]
use alloc::format;

const CKB_STDIN: usize = 0;
const CKB_STDOUT: usize = 1;

Expand Down
3 changes: 3 additions & 0 deletions tests/contracts/spawn-child/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ use alloc::{
use ckb_std::{debug, syscalls};
use spawn_cmd::SpawnCmd;

#[cfg(not(any(feature = "native-simulator", test)))]
use alloc::format;

pub fn program_entry() -> i8 {
debug!("-B- Spawn-Child(pid:{}) Begin --", syscalls::process_id());

Expand Down
3 changes: 3 additions & 0 deletions tests/contracts/spawn-parent/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ use ckb_std::{
use core::ffi::CStr;
use spawn_cmd::SpawnCmd;

#[cfg(not(any(feature = "native-simulator", test)))]
use alloc::format;

pub fn program_entry() -> i8 {
debug!("-A- SpawnParent(pid:{}) Begin --", syscalls::process_id());

Expand Down
2 changes: 1 addition & 1 deletion tests/libs/ckb-std-wrapper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ edition = "2021"
native-simulator = ["ckb-std/native-simulator"]

[dependencies]
ckb-std = { git = "https://github.com/joii2020/ckb-std.git", rev = "a4dfebc" }
ckb-std = { git = "https://github.com/nervosnetwork/ckb-std.git", rev = "ef251e2" }
# ckb-std = { path = "../../../../ckb-std" }

0 comments on commit 47061b6

Please sign in to comment.