Skip to content

Commit

Permalink
Merge pull request #4101 from EthanYuan/fix-typo
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
zhangsoledad authored Aug 16, 2023
2 parents 3c52392 + da0acc9 commit eba3a7a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions rpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6785,7 +6785,7 @@ Refer to RFC [CKB Transaction Structure](https://github.com/nervosnetwork/rfcs/b

* `cell_deps`: `Array<` [`CellDep`](#type-celldep) `>` - An array of cell deps.

CKB locates lock script and type script code via cell deps. The script also can uses syscalls to read the cells here.
CKB locates lock script and type script code via cell deps. The script also can use syscalls to read the cells here.

Unlike inputs, the live cells can be used as cell deps in multiple transactions.

Expand Down Expand Up @@ -6947,7 +6947,7 @@ The JSON view of a transaction as well as its status.

* `cycles`: [`Cycle`](#type-cycle) `|` `null` - The transaction consumed cycles.

* `time_added_to_pool`: [`Uint64`](#type-uint64) `|` `null` - If the transaction is in tx-pool, `time_added_to_pool` represent when it enter the tx-pool. unit: Millisecond
* `time_added_to_pool`: [`Uint64`](#type-uint64) `|` `null` - If the transaction is in tx-pool, `time_added_to_pool` represent when it enters the tx-pool. unit: Millisecond

* `tx_status`: [`TxStatus`](#type-txstatus) - The Transaction status.

Expand Down
8 changes: 4 additions & 4 deletions util/jsonrpc-types/src/blockchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use std::fmt;

/// Specifies how the script `code_hash` is used to match the script code and how to run the code.
///
/// Allowed kinds: "data", "type", "data1" and data2
/// Allowed kinds: "data", "type", "data1" and "data2"
///
/// Refer to the section [Code Locating](https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0022-transaction-structure/0022-transaction-structure.md#code-locating)
/// and [Upgradable Script](https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0022-transaction-structure/0022-transaction-structure.md#upgradable-script)
Expand Down Expand Up @@ -384,7 +384,7 @@ pub struct Transaction {
pub version: Version,
/// An array of cell deps.
///
/// CKB locates lock script and type script code via cell deps. The script also can uses syscalls
/// CKB locates lock script and type script code via cell deps. The script also can use syscalls
/// to read the cells here.
///
/// Unlike inputs, the live cells can be used as cell deps in multiple transactions.
Expand Down Expand Up @@ -536,7 +536,7 @@ pub struct TransactionWithStatusResponse {
pub transaction: Option<ResponseFormat<TransactionView>>,
/// The transaction consumed cycles.
pub cycles: Option<Cycle>,
/// If the transaction is in tx-pool, `time_added_to_pool` represent when it enter the tx-pool. unit: Millisecond
/// If the transaction is in tx-pool, `time_added_to_pool` represent when it enters the tx-pool. unit: Millisecond
pub time_added_to_pool: Option<Uint64>,
/// The Transaction status.
pub tx_status: TxStatus,
Expand Down Expand Up @@ -1461,7 +1461,7 @@ pub struct Buried {
pub status: SoftForkStatus,
/// Whether the rules are active
pub active: bool,
/// The first epoch which the rules will be enforced
/// The first epoch which the rules will be enforced
pub epoch: EpochNumber,
}

Expand Down
2 changes: 1 addition & 1 deletion util/types/src/core/blockchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::packed;
/// The hash type is split into the high 7 bits and the low 1 bit,
/// when the low 1 bit is 1, it indicates the type,
/// when the low 1 bit is 0, it indicates the data,
/// and then it relies on the high 7 bits to indicate
/// and then it relies on the high 7 bits to indicate
/// that the data actually corresponds to the version.
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
pub enum ScriptHashType {
Expand Down
2 changes: 1 addition & 1 deletion util/types/src/core/tx_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ pub struct TransactionWithStatus {
pub tx_status: TxStatus,
/// The transaction verification consumed cycles
pub cycles: Option<core::Cycle>,
/// If the transaction is in tx-pool, `time_added_to_pool` represent when it enter the tx-pool. unit: Millisecond
/// If the transaction is in tx-pool, `time_added_to_pool` represent when it enters the tx-pool. unit: Millisecond
pub time_added_to_pool: Option<u64>,
}

Expand Down

0 comments on commit eba3a7a

Please sign in to comment.