func (op *CommentOptionsOperation) MarshalTransaction(encoder *transaction.Encoder) error {
	enc := transaction.NewRollingEncoder(encoder)
	enc.EncodeUVarint(uint64(TypeCommentOptions.Code()))
	enc.Encode(op.Author)
	enc.Encode(op.Permlink)
	enc.Encode(op.MaxAcceptedPayout)
	enc.Encode(op.PercentSteemDollars)
	enc.EncodeBool(op.AllowVotes)
	enc.EncodeBool(op.AllowCurationRewards)
	if len(op.Extensions) > 0 {
		//Parse Beneficiaries
		z, _ := json.Marshal(op.Extensions[0])
		var l []interface{}
		_ = json.Unmarshal(z, &l)
		z1, _ := json.Marshal(l[1])
		var d CommentPayoutBeneficiaries
		_ = json.Unmarshal(z1, &d)

		enc.Encode(byte(1))
		enc.Encode(d)
	} else {
		enc.Encode(byte(0))
	}
	return enc.Err()
}
//MarshalTransaction is a function of converting type CommentOptionsOperation to bytes.
MarshalTransaction is a function of converting type CommentOptionsOperation to bytes.
// MarshalTransaction is a function of converting type CommentOptionsOperation to bytes .
func (op *CommentOptionsOperation) MarshalTransaction(encoder *transaction.Encoder) error {
	enc := transaction.NewRollingEncoder(encoder)
	enc.EncodeUVarint(uint64(TypeCommentOptions.Code()))
	enc.Encode(op.Author)
	enc.Encode(op.Permlink)
	enc.Encode(op.MaxAcceptedPayout)
	enc.Encode(op.PercentSteemDollars)
	enc.EncodeBool(op.AllowVotes)
	enc.EncodeBool(op.AllowCurationRewards)
	if len(op.Extensions) > 0 {
		z, _ := json.Marshal(op.Extensions[0])
		var l []interface{}
		_ = json.Unmarshal(z, &l)
		z1, _ := json.Marshal(l[1])
		var d CommentPayoutBeneficiaries
		_ = json.Unmarshal(z1, &d)
		enc.Encode(byte(1))
		enc.Encode(d)
	} else {
		enc.Encode(byte(0))
	}
	return enc.Err()
}
func ( op * CommentOptionsOperation ) MarshalTransaction ( encoder * transaction . Encoder ) error { enc := transaction . NewRollingEncoder ( encoder ) enc . EncodeUVarint ( uint64 ( TypeCommentOptions . Code ( ) ) ) enc . Encode ( op . Author ) enc . Encode ( op . Permlink ) enc . Encode ( op . MaxAcceptedPayout ) enc . Encode ( op . PercentSteemDollars ) enc . EncodeBool ( op . AllowVotes ) enc . EncodeBool ( op . AllowCurationRewards ) if len ( op . Extensions ) > 0 { z , _ := json . Marshal ( op . Extensions [ 0 ] ) var l [ ] interface { } _ = json . Unmarshal ( z , & l ) z1 , _ := json . Marshal ( l [ 1 ] ) var d CommentPayoutBeneficiaries _ = json . Unmarshal ( z1 , & d ) enc . Encode ( byte ( 1 ) ) enc . Encode ( d ) } else { enc . Encode ( byte ( 0 ) ) } return enc . Err ( ) }
MarshalTransaction is a function of converting type CommentOptionsOperation to bytes.
MarshalTransaction is a function of converting type CommentOptionsOperation to bytes .
//Parse Beneficiaries