From c03b100b6402fe15eaa14870050399a07b98fed0 Mon Sep 17 00:00:00 2001
From: mtrela <mtrela@syncad.com>
Date: Wed, 15 Jul 2020 10:03:53 +0200
Subject: [PATCH] It's possible to execute tests using `HIVE`, `HBD` symbols

---
 beembase/objects.py        | 7 +++++++
 beemgraphenebase/chains.py | 6 +++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/beembase/objects.py b/beembase/objects.py
index 0cb922ca..44ec967d 100644
--- a/beembase/objects.py
+++ b/beembase/objects.py
@@ -91,6 +91,13 @@ class Amount(object):
 
     def __bytes__(self):
         # 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))
         return (struct.pack("<q", int(self.amount)) + struct.pack("<b", self.precision) +
                 py23_bytes(symbol, "ascii"))
diff --git a/beemgraphenebase/chains.py b/beemgraphenebase/chains.py
index b57746ee..21f72cda 100644
--- a/beemgraphenebase/chains.py
+++ b/beemgraphenebase/chains.py
@@ -48,10 +48,10 @@ known_chains = {
         "chain_id":
         "18dcf0a285365fc58b71f18b3d3fec954aa0c141c44e4e5cb4cf777b9eab274e",
         "min_version": '0.20.0',
-        "prefix": "TST",
+        "prefix": "STM",
         "chain_assets": [
-            {"asset": "@@000000013", "symbol": "TBD", "precision": 3, "id": 0},
-            {"asset": "@@000000021", "symbol": "TESTS", "precision": 3, "id": 1},
+            {"asset": "@@000000013", "symbol": "HBD", "precision": 3, "id": 0},
+            {"asset": "@@000000021", "symbol": "HIVE", "precision": 3, "id": 1},
             {"asset": "@@000000037", "symbol": "VESTS", "precision": 6, "id": 2}
         ],
     },
-- 
GitLab