Skip to content

Commit 1e4e61d

Browse files
authored
1 parent b729083 commit 1e4e61d

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The following dependencies are required for the templates:
2121

2222
* `git`, `make`, `sed`, `bash`, `shasum` and others Unix utilities. Refer to the documentation for your operating systems for how to install them. Chances are your system might already have them.
2323
* `Rust`: latest stable Rust installed via [rustup](https://rustup.rs/) should work. Make sure you have `riscv64` target installed via: `rustup target add riscv64imac-unknown-none-elf`
24-
* `Clang`: make sure you have clang 18+ installed, sample installtion steps for selected platforms are:
24+
* `Clang`: make sure you have clang 18+ installed, sample installation steps for selected platforms are:
2525
+ Debian / Ubuntu: `wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 18 && rm llvm.sh`
2626
+ Fedora 39+: `sudo dnf -y install clang`
2727
+ Archlinux: `sudo pacman --noconfirm -Syu clang`
@@ -144,10 +144,10 @@ $ make generate TEMPLATE=c-wrapper-crate DESTINATION=crates # generate a crat
144144

145145
Ready-to-use templates have been put together for different use cases:
146146

147-
* `contract`: default contract template you should use if no special requirements are neeeded.
147+
* `contract`: default contract template you should use if no special requirements are needed.
148148
* `stack-reorder-contract`: a contract template that adjusts memory layout so stack lives at lower address, and heap lives at higher address. This way a program would explicitly signal errors when stack space is fully use.
149149
* `c-wrapper-crate`: a crate template that shows how to glue C code in a Rust crate for CKB's contract usage.
150-
* `x64-simulator-crate`: a crate template that contains Rust-only code, but usees [ckb-x64-simulator](https://github.com/nervosnetwork/ckb-x64-simulator) for tests.
150+
* `x64-simulator-crate`: a crate template that contains Rust-only code, but uses [ckb-x64-simulator](https://github.com/nervosnetwork/ckb-x64-simulator) for tests.
151151

152152
There are also deprecated templates kept for historical reasons.
153153

atomics-contract/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FULL_RUSTFLAGS := -C target-feature=+zba,+zbb,+zbc,+zbs,-a $(CUSTOM_RUSTFLAGS)
1616
CARGO_ARGS :=
1717
MODE := release
1818
# Tweak this to change the clang version to use for building C code. By default
19-
# we use a bash script with somes heuristics to find clang in current system.
19+
# we use a bash script with some heuristics to find clang in current system.
2020
CLANG := $(shell $(TOP)/scripts/find_clang)
2121
AR := $(subst clang,llvm-ar,$(CLANG))
2222
# When this is set to some value, the generated binaries will be copied over
@@ -61,7 +61,7 @@ fmt:
6161
# Arbitrary cargo command is supported here. For example:
6262
#
6363
# make cargo CARGO_CMD=expand CARGO_ARGS="--ugly"
64-
#
64+
#
6565
# Invokes:
6666
# cargo expand --ugly
6767
CARGO_CMD :=

contract-without-simulator/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FULL_RUSTFLAGS := -C target-feature=+zba,+zbb,+zbc,+zbs,-a $(CUSTOM_RUSTFLAGS)
1616
CARGO_ARGS :=
1717
MODE := release
1818
# Tweak this to change the clang version to use for building C code. By default
19-
# we use a bash script with somes heuristics to find clang in current system.
19+
# we use a bash script with some heuristics to find clang in current system.
2020
CLANG := $(shell $(TOP)/scripts/find_clang)
2121
AR := $(subst clang,llvm-ar,$(CLANG))
2222
OBJCOPY := $(subst clang,llvm-objcopy,$(CLANG))
@@ -64,7 +64,7 @@ fmt:
6464
# Arbitrary cargo command is supported here. For example:
6565
#
6666
# make cargo CARGO_CMD=expand CARGO_ARGS="--ugly"
67-
#
67+
#
6868
# Invokes:
6969
# cargo expand --ugly
7070
CARGO_CMD :=

contract/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FULL_RUSTFLAGS := -C target-feature=+zba,+zbb,+zbc,+zbs,-a $(CUSTOM_RUSTFLAGS)
1616
CARGO_ARGS :=
1717
MODE := release
1818
# Tweak this to change the clang version to use for building C code. By default
19-
# we use a bash script with somes heuristics to find clang in current system.
19+
# we use a bash script with some heuristics to find clang in current system.
2020
CLANG := $(shell $(TOP)/scripts/find_clang)
2121
AR := $(subst clang,llvm-ar,$(CLANG))
2222
OBJCOPY := $(subst clang,llvm-objcopy,$(CLANG))
@@ -64,7 +64,7 @@ fmt:
6464
# Arbitrary cargo command is supported here. For example:
6565
#
6666
# make cargo CARGO_CMD=expand CARGO_ARGS="--ugly"
67-
#
67+
#
6868
# Invokes:
6969
# cargo expand --ugly
7070
CARGO_CMD :=

stack-reorder-contract/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ FULL_RUSTFLAGS := -C target-feature=+zba,+zbb,+zbc,+zbs,-a $(CUSTOM_RUSTFLAGS) \
1717
CARGO_ARGS :=
1818
MODE := release
1919
# Tweak this to change the clang version to use for building C code. By default
20-
# we use a bash script with somes heuristics to find clang in current system.
20+
# we use a bash script with some heuristics to find clang in current system.
2121
CLANG := $(shell $(TOP)/scripts/find_clang)
2222
AR := $(subst clang,llvm-ar,$(CLANG))
2323
# When this is set to some value, the generated binaries will be copied over
@@ -72,7 +72,7 @@ fmt:
7272
# Arbitrary cargo command is supported here. For example:
7373
#
7474
# make cargo CARGO_CMD=expand CARGO_ARGS="--ugly"
75-
#
75+
#
7676
# Invokes:
7777
# cargo expand --ugly
7878
CARGO_CMD :=

standalone-contract/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FULL_RUSTFLAGS := -C target-feature=+zba,+zbb,+zbc,+zbs,-a $(CUSTOM_RUSTFLAGS)
1616
CARGO_ARGS :=
1717
MODE := release
1818
# Tweak this to change the clang version to use for building C code. By default
19-
# we use a bash script with somes heuristics to find clang in current system.
19+
# we use a bash script with some heuristics to find clang in current system.
2020
CLANG := $(shell $(TOP)/scripts/find_clang)
2121
AR := $(subst clang,llvm-ar,$(CLANG))
2222
# When this is set to some value, the generated binaries will be copied over
@@ -62,7 +62,7 @@ fmt:
6262
# Arbitrary cargo command is supported here. For example:
6363
#
6464
# make cargo CARGO_CMD=expand CARGO_ARGS="--ugly"
65-
#
65+
#
6666
# Invokes:
6767
# cargo expand --ugly
6868
CARGO_CMD :=

workspace/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ CUSTOM_RUSTFLAGS := -C debug-assertions
1313
CARGO_ARGS :=
1414
MODE := release
1515
# Tweak this to change the clang version to use for building C code. By default
16-
# we use a bash script with somes heuristics to find clang in current system.
16+
# we use a bash script with some heuristics to find clang in current system.
1717
CLANG := $(shell $(TOP)/scripts/find_clang)
1818
# When this is set, a single contract will be built instead of all contracts
1919
CONTRACT :=

0 commit comments

Comments
 (0)