Skip to content

Commit 39919f2

Browse files
jrainvilleiurimatias
authored andcommitted
fix(@embark/demo): fix ethereum not available in browser in the demo
This only affected the demo. We somehow put the `enableEthereum()` call right before the Demo `set` function, so since we now throw when it's not available, it stopped the `set`. But it was never needed because demo has `autoEnadble` on, meaning that `enable` is called at the start.
1 parent a9807b7 commit 39919f2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

dapps/templates/demo/app/components/blockchain.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ class Blockchain extends React.Component {
2929

3030
async setValue(e) {
3131
e.preventDefault();
32-
await EmbarkJS.enableEthereum();
3332
var value = parseInt(this.state.valueSet, 10);
3433

3534
SimpleStorage.methods.set(value).send();

0 commit comments

Comments
 (0)