Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/izokay/catalyst into izok…
Browse files Browse the repository at this point in the history
…ay-master
  • Loading branch information
apalepu23 committed Jun 15, 2018
2 parents 45f564b + db312be commit 15c79a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions catalyst/marketplace/marketplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ def get_withdraw_amount(self, dataset=None):
while True:
print(df_sets)
dataset_num = input('Choose the dataset you want to '
'get withdraw amount for to [0..{}]: '.format(
'get the withdraw amount for [0..{}]: '.format(
df_sets.size - 1))
try:
dataset_num = int(dataset_num)
Expand All @@ -861,8 +861,8 @@ def get_withdraw_amount(self, dataset=None):
'the Data Marketplace.'.format(dataset))
return

withdraw_amount = self.mkt_contract.functions.getWithdrawAmount(Web3.toHex(dataset.encode())).call()
print(withdraw_amount)
withdraw_amount = from_grains(self.mkt_contract.functions.getWithdrawAmount(Web3.toHex(dataset.encode())).call())
print('{} ENG'.format(withdraw_amount))

def withdraw(self, dataset=None):
if dataset is None:
Expand All @@ -875,7 +875,7 @@ def withdraw(self, dataset=None):
while True:
print(df_sets)
dataset_num = input('Choose the dataset you want to '
'get withdraw amount for to [0..{}]: '.format(
'withdraw from [0..{}]: '.format(
df_sets.size - 1))
try:
dataset_num = int(dataset_num)
Expand Down

0 comments on commit 15c79a9

Please sign in to comment.