Skip to content

Commit

Permalink
Merge pull request nervosnetwork#4151 from eval-exec/exec/add-derive-…
Browse files Browse the repository at this point in the history
…Hash-to-ScriptHashType

Add `derive(Hash)` to `ScriptHashType`
  • Loading branch information
zhangsoledad authored Sep 12, 2023
2 parents 55a0f6c + 347217d commit 9cb5c18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/gen-types/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::packed;
/// when the low 1 bit is 0, it indicates the data,
/// and then it relies on the high 7 bits to indicate
/// that the data actually corresponds to the version.
#[derive(Default, Clone, Copy, PartialEq, Eq, Debug)]
#[derive(Default, Clone, Copy, PartialEq, Eq, Debug, Hash)]
pub enum ScriptHashType {
/// Type "data" matches script code via cell data hash, and run the script code in v0 CKB VM.
#[default]
Expand Down

0 comments on commit 9cb5c18

Please sign in to comment.