Skip to content

Commit

Permalink
Merge pull request #99 from PeggyJV/zaki/hash_eth_msg_in_ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zmanian committed Jul 25, 2021
2 parents 7f01342 + 2985609 commit 8c59da1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testnet/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ func (v *Validator) buildDelegateKeysMsg() sdktypes.Msg {
}

signMsgBz := marshaller.MustMarshalBinaryBare(&signMsg)
ethSig, err := gravitytypes.NewEthereumSignature(signMsgBz, privKey)
hash := crypto.Keccak256Hash(signMsgBz).Bytes()
ethSig, err := gravitytypes.NewEthereumSignature(hash, privKey)
if err != nil {
panic(fmt.Sprintf("failed to create Ethereum signature: %s", err))
}
Expand Down

0 comments on commit 8c59da1

Please sign in to comment.