Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
contraxtType -> contractType
Browse files Browse the repository at this point in the history
  • Loading branch information
Rovak committed Apr 17, 2018
1 parent 1e6d362 commit 1fde462
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/client/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,18 +195,18 @@ class HttpClient {
/**
* Vote for witnesses
*
* @param address account password
* @param password account password
* @param votes witness votes
* @returns {Promise<void>}
*/
async voteForWitnesses(address, votes) {
await xhr
.post(`${this.url}/createVoteWitnessToView`, {
owner: address,
list: votes,
});
}
async voteForWitnesses(password, votes) {
let {data} = await xhr.post(`${this.url}/createVoteWitnessToView`, {
owner: passwordToAddress(password),
list: votes,
});

return await this.signTransaction(password, data);
}

/**
* Apply for delegate
Expand Down

0 comments on commit 1fde462

Please sign in to comment.