Skip to content
Snippets Groups Projects
Commit c03b100b authored by Mariusz Trela's avatar Mariusz Trela
Browse files

It's possible to execute tests using `HIVE`, `HBD` symbols

parent ef692b91
No related branches found
No related tags found
No related merge requests found
...@@ -91,6 +91,13 @@ class Amount(object): ...@@ -91,6 +91,13 @@ class Amount(object):
def __bytes__(self): def __bytes__(self):
# padding # padding
# Workaround to allow transfers in HIVE
if self.symbol == "HBD":
self.symbol = "SBD"
elif self.symbol == "HIVE":
self.symbol = "STEEM"
symbol = self.symbol + "\x00" * (7 - len(self.symbol)) symbol = self.symbol + "\x00" * (7 - len(self.symbol))
return (struct.pack("<q", int(self.amount)) + struct.pack("<b", self.precision) + return (struct.pack("<q", int(self.amount)) + struct.pack("<b", self.precision) +
py23_bytes(symbol, "ascii")) py23_bytes(symbol, "ascii"))
......
...@@ -48,10 +48,10 @@ known_chains = { ...@@ -48,10 +48,10 @@ known_chains = {
"chain_id": "chain_id":
"18dcf0a285365fc58b71f18b3d3fec954aa0c141c44e4e5cb4cf777b9eab274e", "18dcf0a285365fc58b71f18b3d3fec954aa0c141c44e4e5cb4cf777b9eab274e",
"min_version": '0.20.0', "min_version": '0.20.0',
"prefix": "TST", "prefix": "STM",
"chain_assets": [ "chain_assets": [
{"asset": "@@000000013", "symbol": "TBD", "precision": 3, "id": 0}, {"asset": "@@000000013", "symbol": "HBD", "precision": 3, "id": 0},
{"asset": "@@000000021", "symbol": "TESTS", "precision": 3, "id": 1}, {"asset": "@@000000021", "symbol": "HIVE", "precision": 3, "id": 1},
{"asset": "@@000000037", "symbol": "VESTS", "precision": 6, "id": 2} {"asset": "@@000000037", "symbol": "VESTS", "precision": 6, "id": 2}
], ],
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment