Fix ethkey test.

This commit is contained in:
Tomasz Drwięga 2017-05-11 14:58:24 +02:00
parent fc3e1a4f18
commit feb7ac7ba8
No known key found for this signature in database
GPG Key ID: D066F497E62CAF66

View File

@ -251,8 +251,8 @@ mod tests {
let signature = sign(keypair.secret(), &message).unwrap(); let signature = sign(keypair.secret(), &message).unwrap();
// when // when
let vrs = signature.clone().into_vrs(); let vrs = signature.clone().into_electrum();
let from_vrs = Signature::from_vrs(&vrs); let from_vrs = Signature::from_electrum(&vrs);
// then // then
assert_eq!(signature, from_vrs); assert_eq!(signature, from_vrs);