Skip to content

Commit

Permalink
refactor: rename rullupCell script to type_script
Browse files Browse the repository at this point in the history
  • Loading branch information
RetricSu committed Apr 28, 2022
1 parent 7e27161 commit c47b89e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/jsonrpc-types/src/godwoken.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ impl Default for GwScriptType {
#[serde(rename_all = "snake_case")]
pub struct RollupCell {
pub type_hash: H256,
pub script: Script,
pub type_script: Script,
}

#[derive(Clone, Serialize, Deserialize, PartialEq, Eq, Hash, Debug, Default)]
Expand Down
4 changes: 2 additions & 2 deletions crates/rpc-server/src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1403,8 +1403,8 @@ pub fn to_node_rollup_config(rollup_config: &RollupConfig) -> NodeRollupConfig {

pub fn to_rollup_cell(chain_config: &ChainConfig) -> RollupCell {
let type_hash: ckb_types::H256 = chain_config.rollup_type_script.hash();
let script = chain_config.rollup_type_script.to_owned();
RollupCell { type_hash, script }
let type_script = chain_config.rollup_type_script.to_owned();
RollupCell { type_hash, type_script }
}

pub fn to_gw_scripts(
Expand Down

0 comments on commit c47b89e

Please sign in to comment.