Skip to content

Commit

Permalink
decoded views in contract
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiuolteanu committed Apr 10, 2023
1 parent d5e8a19 commit fc3dc2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/simple_lock_energy_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def get_energy_for_user(self, proxy: ProxyNetworkProvider, user_address: str) ->
data_fetcher = SimpleLockEnergyContractDataFetcher(Address(self.address), proxy.url)
raw_results = data_fetcher.get_data('getEnergyEntryForUser', [Address(user_address).serialize()])
if not raw_results:
return ""
return {}
energy_entry_user = decode_merged_attributes(raw_results, decoding_structures.ENERGY_ENTRY)

return energy_entry_user

0 comments on commit fc3dc2f

Please sign in to comment.