[ENG-569]: PrepareProposal Testing (#29)

This commit is contained in:
David Terpay
2023-03-21 10:07:14 -04:00
committed by GitHub
parent 9e350bc7f7
commit c8115a0d81
7 changed files with 841 additions and 31 deletions
+10
View File
@@ -51,3 +51,13 @@ func GetMsgAuctionBidFromTx(tx sdk.Tx) (*auctiontypes.MsgAuctionBid, error) {
return nil, errors.New("invalid MsgAuctionBid transaction")
}
}
// UnwrapBidTx attempts to unwrap a WrappedBidTx from an sdk.Tx if one exists.
func UnwrapBidTx(tx sdk.Tx) sdk.Tx {
wTx, ok := tx.(*WrappedBidTx)
if ok {
return wTx.Tx
}
return tx
}