Skip to content

Commit

Permalink
Update serializers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Redhat-58 committed Sep 25, 2024
1 parent e859337 commit a3f3985
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/user/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ def save(self):
w3 = Web3(Web3.HTTPProvider(f'https://mainnet.infura.io/v3/{INFURA_PROJECT_ID}'))
balance_wei = w3.eth.get_balance(user.wallet_address)
user.eth_balance = w3.from_wei(balance_wei, 'ether')
print('wallet_address === ', user.wallet_address)
print('balance_wei === ', balance_wei)
print('user.eth_balance === ', user.eth_balance)

password = self.validated_data["password"]
password2 = self.validated_data["password2"]
Expand Down

0 comments on commit a3f3985

Please sign in to comment.