Skip to content

Commit a6a8aa5

Browse files
fix(LinguoToken): small fix + test file
1 parent 91378ad commit a6a8aa5

File tree

2 files changed

+1170
-3
lines changed

2 files changed

+1170
-3
lines changed

contracts/standard/arbitration/LinguoToken.sol

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
1717
/** @title LinguoToken
1818
* Linguo is a decentralized platform where anyone can submit a document for translation and have it translated by freelancers.
1919
* It has no platform fees and disputes about translation quality are handled by Kleros jurors.
20-
* This version of the contract made for ERC-20 tokens support.
20+
* This version of the contract is made for ERC-20 tokens support.
2121
* NOTE: This contract trusts that the Arbitrator is honest and will not reenter or modify its costs during a call.
2222
* The arbitrator must support appeal period.
2323
* Also note that this contract trusts that the tokens will not allow the recipients to block the transfers.
@@ -183,7 +183,7 @@ contract LinguoToken is Arbitrable {
183183
/** @dev Changes the base deposit for challenger.
184184
* @param _challengerBaseDeposit A new value of the base deposit required for challenging, in wei.
185185
*/
186-
function changeChallengrBaseDeposit(uint _challengerBaseDeposit) public onlyGovernor {
186+
function changeChallengerBaseDeposit(uint _challengerBaseDeposit) public onlyGovernor {
187187
challengerBaseDeposit = _challengerBaseDeposit;
188188
}
189189

@@ -233,6 +233,7 @@ contract LinguoToken is Arbitrable {
233233

234234
taskID = tasks.length++;
235235
Task storage task = tasks[taskID];
236+
task.token = _token;
236237
task.submissionTimeout = _deadline - now;
237238
task.minPrice = _minPrice;
238239
task.maxPrice = _maxPrice;
@@ -241,7 +242,7 @@ contract LinguoToken is Arbitrable {
241242
task.requesterDeposit = _maxPrice;
242243

243244
emit MetaEvidence(taskID, _metaEvidence);
244-
emit TaskCreated(taskID, msg.sender, _token, now);
245+
emit TaskCreated(taskID, msg.sender, task.token, now);
245246
}
246247

247248
/** @dev Assigns a specific task to the sender. Requires a translator's deposit in wei.

0 commit comments

Comments
 (0)