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

Fix base exception #3

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Fix base exception #3

wants to merge 7 commits into from

Conversation

iconbetdev420
Copy link
Collaborator

Resolve update issues.

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]
Copy link
Collaborator Author

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

score_at_address = self.create_interface_score(Address.from_string(metadata['scoreAddress']),
ScoreOwnerInterface)
scoreAddress = metadata['scoreAddress']
game_address = Address.from_string(scoreAddress)
Copy link
Collaborator Author

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:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make revert message clear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant