holgern/beem

View on GitHub
beemgraphenebase/prefix.py

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# -*- coding: utf-8 -*-
class Prefix:
    """ This class is meant to allow changing the prefix.
        The prefix is used to link a public key to a specific blockchain.
    """

    prefix = "STM"

    def set_prefix(self, prefix):
        if prefix:
            self.prefix = prefix