Skip to content

Commit

Permalink
Add derive(Hash) to ScriptHashType
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Sep 12, 2023
1 parent 55a0f6c commit 347217d
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 347217d

Please sign in to comment.