-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix base exception #3
base: master
Are you sure you want to change the base?
Conversation
authorization/authorization.py
Outdated
or self._status_data[_scoreAddress] == 'gameSuspended'): | ||
revert(f'This game cannot be approved from state {self._status_data[_scoreAddress]}') | ||
if _status == 'gameSuspended' and self._status_data[_scoreAddress] != 'gameApproved': | ||
gameAddress = self._status_data[_scoreAddress] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change variable name to gameStatus
authorization/authorization.py
Outdated
score_at_address = self.create_interface_score(Address.from_string(metadata['scoreAddress']), | ||
ScoreOwnerInterface) | ||
scoreAddress = metadata['scoreAddress'] | ||
game_address = Address.from_string(scoreAddress) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make a single variable
@@ -369,8 +372,8 @@ def _check_game_metadata(self, _metadata: dict): | |||
revWalletAddress = Address.from_string(revwallet) | |||
if revWalletAddress.is_contract: | |||
revert('Not a wallet address') | |||
except BaseException as e: | |||
Logger.debug(f'Failed. Exception: {e}', TAG) | |||
except Exception: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make revert message clear
Resolve update issues.