Skip to content

Commit

Permalink
fix nil ref bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed Apr 21, 2023
1 parent 00a357c commit 2a89563
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x/auth/signing/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ func AdaptableToTxData(adaptableTx V2AdaptableTx) txsigning.TxData {
tip := adaptableTx.GetTip()
tipCoins := tip.GetAmount()
tipAmount := make([]*basev1beta1.Coin, len(tipCoins))
var tipper string
if tip != nil {
tipper = tip.GetTipper()
}
for i, coin := range tipCoins {
tipAmount[i] = &basev1beta1.Coin{
Denom: coin.Denom,
Expand Down Expand Up @@ -138,7 +142,7 @@ func AdaptableToTxData(adaptableTx V2AdaptableTx) txsigning.TxData {
},
Tip: &txv1beta1.Tip{
Amount: tipAmount,
Tipper: tip.Tipper,
Tipper: tipper,
},
}

Expand Down

0 comments on commit 2a89563

Please sign in to comment.