From d44ab22d87946768bef03f98d863df5a25e71f28 Mon Sep 17 00:00:00 2001 From: 0xmuralik Date: Wed, 11 Jan 2023 16:34:20 +0530 Subject: [PATCH] delete duplicate code --- ethereum/eip712/eip712.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/ethereum/eip712/eip712.go b/ethereum/eip712/eip712.go index a21896a9..72e0af82 100644 --- a/ethereum/eip712/eip712.go +++ b/ethereum/eip712/eip712.go @@ -53,19 +53,6 @@ func WrapTxToTypedData( } } - if txData["msgs"].([]interface{})[0].(map[string]interface{})["value"].(map[string]interface{})["payload"] != nil { - setRecordMsg := msg.(*registry.MsgSetRecord) - var attr []interface{} - for _, b := range setRecordMsg.Payload.Record.Attributes.Value { - attr = append(attr, fmt.Sprintf("%v", b)) - } - - txData["msgs"].([]interface{})[0].(map[string]interface{})["value"].(map[string]interface{})["payload"].(map[string]interface{})["record"].(map[string]interface{})["attributes"] = map[string]interface{}{ - "type_url": setRecordMsg.Payload.Record.Attributes.TypeUrl, - "value": attr, - } - } - domain := apitypes.TypedDataDomain{ Name: "Cosmos Web3", Version: "1.0.0",