Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Rename chainID variable for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
austinchandra committed Jan 13, 2023
1 parent 182285d commit 3f4abeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethereum/eip712/eip712.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ func WrapTxToTypedData(
return apitypes.TypedData{}, errorsmod.Wrap(errortypes.ErrJSONUnmarshal, "failed to flatten JSON data")
}

chainIdInt64, err := strconv.ParseInt(strconv.FormatUint(chainID, 10), 10, 64)
chainIDInt64, err := strconv.ParseInt(strconv.FormatUint(chainID, 10), 10, 64)
if err != nil {
return apitypes.TypedData{}, errorsmod.Wrap(err, "invalid chainID")
}

domain := apitypes.TypedDataDomain{
Name: "Cosmos Web3",
Version: "1.0.0",
ChainId: math.NewHexOrDecimal256(chainIdInt64),
ChainId: math.NewHexOrDecimal256(chainIDInt64),
VerifyingContract: "cosmos",
Salt: "0",
}
Expand Down

0 comments on commit 3f4abeb

Please sign in to comment.