Skip to content

Commit

Permalink
Use 27/28 v format in signature instead 0/1
Browse files Browse the repository at this point in the history
  • Loading branch information
SvineruS committed Jun 27, 2024
1 parent a14d461 commit ec49b8f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion relay/internal/service_fee/fee_helper/fee_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ func NewFeeHelper(bridge networks.Bridge, cfg config.FeeApiNetwork) (*FeeHelper,
}

func (b *FeeHelper) Sign(digestHash []byte) ([]byte, error) {
return crypto.Sign(digestHash, b.privateKey)
sign, err := crypto.Sign(digestHash, b.privateKey)
if err != nil {
return nil, err
}
sign[64] += 27
return sign, nil
}

func (b *FeeHelper) GetTransferFee() (thisGas, sideGas decimal.Decimal, err error) {
Expand Down

0 comments on commit ec49b8f

Please sign in to comment.