Use new healthcheck API from kredits-contracts
This uses console.error to log the healthcheck error.
This commit is contained in:
@@ -8,6 +8,10 @@ export default Route.extend({
|
||||
const kredits = this.kredits;
|
||||
|
||||
return kredits.setup().then(() => {
|
||||
kredits.get('kredits').healthcheck().catch((error) => {
|
||||
console.error('Kredits healthcheck failed!');
|
||||
console.error(error);
|
||||
});
|
||||
if (kredits.get('accountNeedsUnlock')) {
|
||||
if (confirm('It looks like you have an Ethereum wallet available. Please unlock your account.')) {
|
||||
transition.retry();
|
||||
|
||||
Generated
+1
-1
@@ -13456,7 +13456,7 @@
|
||||
}
|
||||
},
|
||||
"kredits-contracts": {
|
||||
"version": "github:67P/truffle-kredits#b6bc5af7bf4c9b7aded6a032bd7acb0bd57e475d",
|
||||
"version": "github:67P/truffle-kredits#ee886e6cd08e2d7ef0c3e1c5952a15c918d20224",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ethers": "3.0.15",
|
||||
|
||||
Reference in New Issue
Block a user