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

Commit 1fde462

Browse files
committed
contraxtType -> contractType
1 parent 1e6d362 commit 1fde462

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/client/http.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -195,18 +195,18 @@ class HttpClient {
195195
/**
196196
* Vote for witnesses
197197
*
198-
* @param address account password
198+
* @param password account password
199199
* @param votes witness votes
200200
* @returns {Promise<void>}
201201
*/
202-
async voteForWitnesses(address, votes) {
203-
await xhr
204-
.post(`${this.url}/createVoteWitnessToView`, {
205-
owner: address,
206-
list: votes,
207-
});
208-
}
202+
async voteForWitnesses(password, votes) {
203+
let {data} = await xhr.post(`${this.url}/createVoteWitnessToView`, {
204+
owner: passwordToAddress(password),
205+
list: votes,
206+
});
209207

208+
return await this.signTransaction(password, data);
209+
}
210210

211211
/**
212212
* Apply for delegate

0 commit comments

Comments
 (0)