diff --git a/types/tx/tips.go b/types/tx/tips.go new file mode 100644 index 000000000000..891fc7bcdc45 --- /dev/null +++ b/types/tx/tips.go @@ -0,0 +1,6 @@ +package tx + +// TipTx defines the interface to be implemented by Txs that handle Tips. +type TipTx interface { + GetTip() *Tip +} diff --git a/x/auth/tx/builder.go b/x/auth/tx/builder.go index 628c9618fcd5..cbcd7252a9fe 100644 --- a/x/auth/tx/builder.go +++ b/x/auth/tx/builder.go @@ -221,6 +221,10 @@ func (w *wrapper) GetTimeoutHeight() uint64 { return w.tx.Body.TimeoutHeight } +func (w *wrapper) GetTip() *tx.Tip { + return w.tx.AuthInfo.Tip +} + func (w *wrapper) GetSignaturesV2() ([]signing.SignatureV2, error) { signerInfos := w.tx.AuthInfo.SignerInfos sigs := w.tx.Signatures