Skip to content

Commit

Permalink
fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rmanzoku committed May 31, 2021
1 parent 3e9559e commit cf5d9fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions awseoa.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ func (s Signer) SignDigest(digest []byte) (signature []byte, err error) {
func (s Signer) EthereumSign(msg []byte) (signature []byte, err error) {
digest := toEthSignedMessageHash(msg)
sig, err := s.SignDigest(digest)
if err != nil {
return nil, err
}

if sig[64] < 27 {
sig[64] += 27
Expand Down

0 comments on commit cf5d9fc

Please sign in to comment.