diff --git a/ethereum/eip712/domain.go b/ethereum/eip712/domain.go index 7e2c1c2000..d768a17ab8 100644 --- a/ethereum/eip712/domain.go +++ b/ethereum/eip712/domain.go @@ -16,19 +16,22 @@ package eip712 import ( + "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/signer/core/apitypes" ) // createEIP712Domain creates the typed data domain for the given chainID. func createEIP712Domain(chainID uint64) apitypes.TypedDataDomain { + contractStr := "cosmos" + contractAddr := common.BytesToAddress([]byte(contractStr)) domain := apitypes.TypedDataDomain{ Name: "Carbon", Version: "1.0.0", ChainId: math.NewHexOrDecimal256(int64(chainID)), - VerifyingContract: "cosmos", + VerifyingContract: contractAddr.Hex(), Salt: "1", } - + return domain }