We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cca539 commit d3731c5Copy full SHA for d3731c5
nekoton-utils/src/signature_domain.rs
@@ -13,19 +13,14 @@ impl ToSign {
13
let mut output = Vec::new();
14
15
match (self.ctx.signature_type, self.ctx.global_id) {
16
- (SignatureType::Empty, _) => {}
17
- (SignatureType::SignatureId, None) => {}
18
- (SignatureType::SignatureDomain, None) => {
19
- let sd = SignatureDomain::Empty;
20
- output.extend_from_slice(&sd.hash())
21
- }
22
(SignatureType::SignatureDomain, Some(global_id)) => {
23
let sd = SignatureDomain::L2 { global_id };
24
output.extend_from_slice(&sd.hash())
25
}
26
(SignatureType::SignatureId, Some(global_id)) => {
27
output.extend_from_slice(&global_id.to_be_bytes())
28
+ _ => {}
29
30
31
output.extend_from_slice(&self.data);
0 commit comments