Skip to content

Commit

Permalink
fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Sep 19, 2024
1 parent 5163ee3 commit d7afa95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/auth/tx/eip712.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ func getSignBytes(mode signingtypes.SignMode, signerData signing.SignerData, tx

chainID, err := sdk.ParseChainID(signerData.ChainID)
if err != nil {
return nil, err
return nil, fmt.Errorf("failed to parse chainID: %s", signerData.ChainID)
}

msgTypes, signDoc, err := GetMsgTypes(signerData, tx, chainID)
if err != nil {
return nil, err
return nil, errorsmod.Wrap(err, "failed to get msg types")
}

typedDataDomain := *domain
Expand All @@ -95,7 +95,7 @@ func getSignBytes(mode signingtypes.SignMode, signerData signing.SignerData, tx

typedData, err := WrapTxToTypedData(signDoc, msgTypes, typedDataDomain)
if err != nil {
return nil, err
return nil, errorsmod.Wrap(err, "failed to pack tx data in EIP712 object")
}

return ComputeTypedDataHash(typedData)
Expand Down

0 comments on commit d7afa95

Please sign in to comment.