diff --git a/hive/commit.py b/hive/commit.py index 34241e9cfee4cf0ba2a16710e40443ed490123ed..251fca197ea030b32d479837ff62ff478ddef599 100644 --- a/hive/commit.py +++ b/hive/commit.py @@ -1032,7 +1032,7 @@ class Commit(object): [ ["account_creation_fee": x] ["maximum_block_size": x] - ["hbd_interest_rate": x] + ["sbd_interest_rate": x] ] """ diff --git a/hivebase/operations.py b/hivebase/operations.py index ed23d6aac8fa522133323bf43061be3a129d15f5..0d2eaf29d654ff143debb7d84fae562e1e368944 100644 --- a/hivebase/operations.py +++ b/hivebase/operations.py @@ -713,13 +713,13 @@ class WitnessSetProperties(GrapheneObject): is_hex = re.match(r'^[0-9a-fA-F]+$', k[1] or '') is not None else: is_hex = False - if isinstance(k[1], int) and k[0] in ["account_subsidy_budget", "account_subsidy_decay", "maximum_block_size", "hbd_interest_rate"]: + if isinstance(k[1], int) and k[0] in ["account_subsidy_budget", "account_subsidy_decay", "maximum_block_size", "sbd_interest_rate"]: props[k[0]] = (hexlify(Uint32(k[1]).__bytes__())).decode() elif not isinstance(k[1], str) and k[0] in ["account_creation_fee"]: props[k[0]] = (hexlify(Amount(k[1]).__bytes__())).decode() elif not is_hex and isinstance(k[1], str) and k[0] in ["account_creation_fee"]: props[k[0]] = (hexlify(Amount(k[1]).__bytes__())).decode() - elif not isinstance(k[1], str) and k[0] in ["hbd_exchange_rate"]: + elif not isinstance(k[1], str) and k[0] in ["sbd_exchange_rate"]: props[k[0]] = (hexlify(ExchangeRate(k[1]).__bytes__())).decode() elif not is_hex and k[0] in ["url"]: props[k[0]] = (hexlify(String(k[1]).__bytes__())).decode()