func (msg *MsgBudgetProposalBroadcast) BtcEncode(w io.Writer, pver uint32, enc MessageEncoding) error {
	err := WriteVarString(w, pver, msg.ProposalName)
	if err != nil {
		return err
	}
	err = WriteVarString(w, pver, msg.ProposalURL)
	if err != nil {
		return err
	}
	err = writeElements(w, msg.Time, msg.BlockStart, msg.BlockEnd, msg.Amount)
	if err != nil {
		return err
	}
	err = WriteVarBytes(w, pver, msg.Payee)
	if err != nil {
		return err
	}
	return writeElement(w, msg.FeeTransactionHash)
}
// BtcEncode encodes the receiver to w using the bitcoin protocol encoding.
// This is part of the Message interface implementation.
BtcEncode encodes the receiver to w using the bitcoin protocol encoding.
This is part of the Message interface implementation.
// BtcEncode encodes the receiver to w using the bitcoin protocol encoding . // This is part of the Message interface implementation .
func (msg *MsgBudgetProposalBroadcast) BtcEncode(w io.Writer, pver uint32, enc MessageEncoding) error {
	err := WriteVarString(w, pver, msg.ProposalName)
	if err != nil {
		return err
	}
	err = WriteVarString(w, pver, msg.ProposalURL)
	if err != nil {
		return err
	}
	err = writeElements(w, msg.Time, msg.BlockStart, msg.BlockEnd, msg.Amount)
	if err != nil {
		return err
	}
	err = WriteVarBytes(w, pver, msg.Payee)
	if err != nil {
		return err
	}
	return writeElement(w, msg.FeeTransactionHash)
}
func ( msg * MsgBudgetProposalBroadcast ) BtcEncode ( w io . Writer , pver uint32 , enc MessageEncoding ) error { err := WriteVarString ( w , pver , msg . ProposalName ) if err != nil { return err } err = WriteVarString ( w , pver , msg . ProposalURL ) if err != nil { return err } err = writeElements ( w , msg . Time , msg . BlockStart , msg . BlockEnd , msg . Amount ) if err != nil { return err } err = WriteVarBytes ( w , pver , msg . Payee ) if err != nil { return err } return writeElement ( w , msg . FeeTransactionHash ) }
BtcEncode encodes the receiver to w using the bitcoin protocol encoding.
BtcEncode encodes the receiver to w using the bitcoin protocol encoding .