Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryanmtate committed Dec 23, 2017
1 parent 0385f20 commit 5ab577e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
10 changes: 6 additions & 4 deletions dist/Account/verifyAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ function verifyAccount(_ref) {
value: username
}];

_this.web3.eth.sendAsync({
_this.web3.currentProvider.sendAsync({
method: 'eth_signTypedData',
params: [msgParams, address],
from: address
}).then(function (sig) {
}, function (error, sig) {
if (error) {
console.log(error);
}

console.log('sig', sig);
}).catch(function (error) {
console.log('error', error);
});
};
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gittoken-redux-actions",
"version": "0.0.36",
"version": "0.0.37",
"description": "GitToken Redux Actions",
"main": "./src/index",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions src/Account/verifyAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ export default function verifyAccount({ address, username }) {
value: username
}]

this.web3.eth.sendAsync({
this.web3.currentProvider.sendAsync({
method: 'eth_signTypedData',
params: [msgParams, address],
from: address
}).then((sig) => {
}, (error, sig) => {
if (error) { console.log(error) }

console.log('sig', sig)
}).catch((error) => {
console.log('error', error)
})
}
}

0 comments on commit 5ab577e

Please sign in to comment.