Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Commit

Permalink
clean and bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstep committed Nov 13, 2017
1 parent 6441a3a commit 460f4cd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 143 deletions.
2 changes: 1 addition & 1 deletion src/model/DApps/DApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export default class DApp {

if (receipt.transactionHash) {
// Set deposit in logic
this.users[params.user_id].logic.payChannel.setDeposit( player_deposit )
this.users[params.user_id].logic.payChannel.setDeposit( Utils.bet2dec(player_deposit) )
}

this.response(params, { receipt:receipt }, response_room)
Expand Down
3 changes: 3 additions & 0 deletions src/model/DApps/DApps.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ class _DCLib {
raw_msg = Utils.remove0x(raw_msg)
return ( need_address.toLowerCase() == this.web3.eth.accounts.recover(raw_msg, signed_msg).toLowerCase() )
}
checkHashSig(raw_msg, signed_msg, need_address){
return ( need_address.toLowerCase() == this.web3.eth.accounts.recover(raw_msg, signed_msg).toLowerCase() )
}
}


Expand Down
89 changes: 0 additions & 89 deletions src/model/DApps/approve.js

This file was deleted.

53 changes: 0 additions & 53 deletions src/model/DApps/messaging.js

This file was deleted.

0 comments on commit 460f4cd

Please sign in to comment.