Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Sep 13, 2023
1 parent c404130 commit 14d0d97
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions client/tx/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,16 @@ func (f Factory) PrintEIP712MsgType(clientCtx client.Context, msgs ...sdk.Msg) e

chainID, err := sdk.ParseChainID(clientCtx.ChainID)
if err != nil {
return fmt.Errorf("failed to parse chainID: %s", clientCtx.ChainID)
return fmt.Errorf("failed to parse chainID: %s", err)
}
msgTypes, signDoc, err := authtx.GetMsgTypes(signerData, unsignedTx.GetTx(), chainID)

if err != nil {
return fmt.Errorf("failed to get msg types: %s", err)
}
typedData, err := authtx.WrapTxToTypedData(chainID.Uint64(), signDoc, msgTypes)
if err != nil {
return fmt.Errorf("failed to wrap tx to typedData: %s", err)
}

type EIP712TypedData struct {
Type string `json:"type"`
Expand Down

0 comments on commit 14d0d97

Please sign in to comment.