From 68661b3a2b5b061e60adb49580577a02215bfa6a Mon Sep 17 00:00:00 2001 From: bizk Date: Thu, 23 Nov 2023 18:36:43 -0300 Subject: [PATCH] removed tip --- utils.go | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/utils.go b/utils.go index 94d2181..97c8a1a 100644 --- a/utils.go +++ b/utils.go @@ -60,26 +60,6 @@ func parseSignerData(signerData authsigning.SignerData) signing2.SignerData { return signing2.SignerData{Address: strconv.FormatUint(signerData.AccountNumber, 10), ChainID: signerData.ChainID, AccountNumber: signerData.AccountNumber, Sequence: signerData.Sequence, PubKey: &parsedSignerDataPublicKey} } -func parseTxTip(tx authsigning.Tx) txv1beta1.Tip { // nolint: staticcheck // Because we still need to use - parsedTipAmount := []*v1beta1.Coin{} - tipper := string(tx.FeePayer()) - - // if tx.GetTip() != nil { - // for _, txCoin := range tx.GetTip().Amount { - // parsedTipAmount = append(parsedTipAmount, &v1beta1.Coin{ - // Denom: txCoin.Denom, - // Amount: txCoin.Amount.String(), - // }) - // } - // tipper = tx.GetTip().Tipper - //} - - return txv1beta1.Tip{ // nolint: staticcheck // Because we still need to use - Amount: parsedTipAmount, - Tipper: tipper, - } -} - func parseSignerInfo(signerData signing2.SignerData) []*txv1beta1.SignerInfo { parsedSignerInfo := []*txv1beta1.SignerInfo{} signerInfo := &txv1beta1.SignerInfo{ @@ -120,7 +100,6 @@ func parseFeeAmount(tx authsigning.Tx) []*v1beta1.Coin { } func parseAuthInfo(tx authsigning.Tx, signerData signing2.SignerData) *txv1beta1.AuthInfo { - parsedTxTip := parseTxTip(tx) parsedFeeAmount := parseFeeAmount(tx) parsedSignerInfo := parseSignerInfo(signerData) @@ -133,7 +112,6 @@ func parseAuthInfo(tx authsigning.Tx, signerData signing2.SignerData) *txv1beta1 Payer: string(tx.FeePayer()), Granter: string(tx.FeeGranter()), }, - Tip: &parsedTxTip, } }