fix: enfore upper case symbol name
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
32ba29354a
commit
71bf1e15c4
@ -40,7 +40,7 @@ class Token(Data):
|
||||
):
|
||||
super(Token, self).__init__()
|
||||
self.name = name
|
||||
self.symbol = symbol
|
||||
self.symbol = symbol.upper()
|
||||
self.supply = supply
|
||||
self.precision = precision
|
||||
self.code = code
|
||||
@ -57,6 +57,7 @@ class Token(Data):
|
||||
|
||||
self.name = input(f"Enter Token Name ({self.name}): ") or self.name
|
||||
self.symbol = input(f"Enter Token Symbol ({self.symbol}): ") or self.symbol
|
||||
self.symbol = this.symbol.upper()
|
||||
self.precision = input(f"Enter Token Precision ({self.precision}): ") or self.precision
|
||||
self.supply = input(f"Enter Token Supply ({self.supply}): ") or self.supply
|
||||
|
||||
@ -68,7 +69,7 @@ class Token(Data):
|
||||
o = json.load(f)
|
||||
|
||||
self.name = o["name"]
|
||||
self.symbol = o["symbol"]
|
||||
self.symbol = o["symbol"].upper()
|
||||
self.precision = o["precision"]
|
||||
self.code = o["code"]
|
||||
self.supply = o["supply"]
|
||||
@ -100,7 +101,7 @@ class Token(Data):
|
||||
with open(token_template_file_path, encoding="utf-8") as f:
|
||||
o = json.load(f)
|
||||
o["name"] = self.name
|
||||
o["symbol"] = self.symbol
|
||||
o["symbol"] = self.symbol.upper()
|
||||
o["precision"] = self.precision
|
||||
o["code"] = self.code
|
||||
o["supply"] = self.supply
|
||||
@ -115,7 +116,7 @@ class Token(Data):
|
||||
|
||||
def __str__(self):
|
||||
s = f"name = {self.name}\n"
|
||||
s += f"symbol = {self.symbol}\n"
|
||||
s += f"symbol = {self.symbol.upper()}\n"
|
||||
s += f"precision = {self.precision}\n"
|
||||
s += f"supply = {self.supply}\n"
|
||||
for idx, extra in enumerate(self.extra_args):
|
||||
|
Loading…
Reference in New Issue
Block a user