Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mojo conversion exception for Achi #27

Merged
merged 11 commits into from
Feb 21, 2024
2 changes: 2 additions & 0 deletions src/chia_log/parsers/wallet_added_coin_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def parse(self, logs: str) -> List[WalletAddedCoinMessage]:
mojos = mojos * 1000000000
elif self._prefix == 'stai':
mojos = mojos * 1000
elif self._prefix == 'achi':
mojos = mojos * 1000
logging.info("{0} received {1} at {2}".format(self._prefix, mojos, match[0]))
parsed_messages.append(
WalletAddedCoinMessage(
Expand Down