func (sb *ShardBlockBody) ToProto() *pb.ShardBlockBody {
	txs := make([]*pb.ShardTransaction, len(sb.Transactions))

	for i := range txs {
		txs[i] = sb.Transactions[i].ToProto()
	}
	return &pb.ShardBlockBody{
		Transactions: txs,
	}
}
// ToProto converts a shard block body to protobuf format.
ToProto converts a shard block body to protobuf format.
// ToProto converts a shard block body to protobuf format .
func (sb *ShardBlockBody) ToProto() *pb.ShardBlockBody {
	txs := make([]*pb.ShardTransaction, len(sb.Transactions))
	for i := range txs {
		txs[i] = sb.Transactions[i].ToProto()
	}
	return &pb.ShardBlockBody{
		Transactions: txs,
	}
}
func ( sb * ShardBlockBody ) ToProto ( ) * pb . ShardBlockBody { txs := make ( [ ] * pb . ShardTransaction , len ( sb . Transactions ) ) for i := range txs { txs [ i ] = sb . Transactions [ i ] . ToProto ( ) } return & pb . ShardBlockBody { Transactions : txs , } }
ToProto converts a shard block body to protobuf format.
ToProto converts a shard block body to protobuf format .