Skip to content

Commit

Permalink
fix: 1 mdx format, 1 command, 3 typos (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
fghdotio authored Aug 29, 2024
1 parent aba14f6 commit 6c96c4e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion website/docs/dapp/simple-lock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Navigate to your project's frontend folder, install the node dependencies, and s

<CodeTabs
cmd={
`cd frontend && npm run dev`
`cd frontend && npm i && npm run dev`
}
response={
`> [email protected] dev
Expand Down
2 changes: 1 addition & 1 deletion website/docs/getting-started/how-ckb-works.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ An entire Cell's data structure looks like this:

```bash
Cell: {
capacity: HexString; # represent the total storage space size of the Cell. The basic unit for capcaity is shannon, where 1 CKB equals 10**8 shannons.
capacity: HexString; # represent the total storage space size of the Cell. The basic unit for capacity is shannon, where 1 CKB equals 10**8 shannons.
lock: Script; # a piece of code
type: Script; # a piece of code
data: HexString; # this field can store arbitrary bytes, which means it can hold any type of data
Expand Down
2 changes: 1 addition & 1 deletion website/docs/script/intro-to-script.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ A Script can be one of two types:
- **Lock Script** - Used to control ownership and access to a Cell.
- **Type Script** - Used to control how a Cell is used in a transaction.

In most cases, Lock Script works the same with Type Script. The difference is that, only the Lock Script from the input Cells will be exeuted in the transaction, while the Type Script from both the input Cells and output Cells will be executed in the transaction.
In most cases, Lock Script works the same with Type Script. The difference is that, only the Lock Script from the input Cells will be executed in the transaction, while the Type Script from both the input Cells and output Cells will be executed in the transaction.

This difference has lead to the different usecases of Lock Script and Type Script as we have mentioned above. Lock Script is often used to control owner ship of a Cell while Type Script defines what kinds of changes of a Cell is valid for the transaction.

Expand Down
1 change: 0 additions & 1 deletion website/docs/script/program-language-for-script.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ We will use `Rust` as the programming language across the tutorials on this webs

## Rust

f
Rust can easily compile the source code to a RISC-V target, allowing the code to be executed on CKB-VM.

We have also built some useful Rust libraries and template tools to help developers build Script:
Expand Down
3 changes: 2 additions & 1 deletion website/docs/script/vm-cycle-limits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ The cycles consumed for each operation are determined based on the following rul
### Initial Loading Cycles

For each byte loaded into CKB-VM in the initial ELF loading phase, 0.25 cycles will be charged. This is to encourage dApp developers to ship smaller Scripts as well as preventing DDoS attacks using large binaries.
::: note

:::note
Fractions will be rounded up. For example, 30.25 cycles will become 31 cycles.
:::

Expand Down

0 comments on commit 6c96c4e

Please sign in to comment.