contracts/app/dapp.js

26 lines
762 B
JavaScript
Raw Normal View History

2018-03-28 08:36:08 -04:00
import 'bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
import EmbarkJS from 'Embark/EmbarkJS';
import IdentityFactory from 'Embark/contracts/IdentityFactory';
import './dapp.css';
$(function(){
$("#btnCreateIdentity").on('click', async function() {
console.log(IdentityFactory.options.address);
console.log("Test3");
web3.eth.getAccounts()
.then(accounts => console.log(accounts))
//.then(accounts => IdentityFactory.methods.createIdentity().send({from: accounts[0], gasLimit: 5000000}))
// .then((tx) => console.log(tx.events));
// test
// addToLog("#blockchain", "SimpleStorage.methods.set(value).send({from: web3.eth.defaultAccount})");
});
});