Skip to content

Commit

Permalink
Merge pull request #4 from virtualeconomy/updatePaymentPath
Browse files Browse the repository at this point in the history
adjust payment path in api
  • Loading branch information
SheldonYS committed Jan 12, 2019
2 parents fb55e9d + 96dc4f5 commit a2c5495
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions account.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,7 @@ def send_payment(self, recipient, amount, attachment='', tx_fee=DEFAULT_PAYMENT_
"signature": signature
})

if self.chain.chain_id == "T":
return self.wrapper.request('/vee/broadcast/payment', data)
else:
return self.wrapper.request('/vsys/broadcast/payment', data)
return self.wrapper.request('/vsys/broadcast/payment', data)

def lease(self, recipient, amount, tx_fee=DEFAULT_LEASE_FEE, fee_scale=DEFAULT_FEE_SCALE, timestamp=0):
if not self.privateKey:
Expand Down Expand Up @@ -435,4 +432,4 @@ def check_node(self, other_node_host=None):
else:
res = self.chain.self_check()
# add more check if need
return res
return res

0 comments on commit a2c5495

Please sign in to comment.