embark/lib/modules/code_generator/code_templates/vanilla-contract.js.ejs

10 lines
430 B
Plaintext
Raw Normal View History

2017-10-14 00:01:35 +00:00
<%- className %>Abi = <%- abi %>;
2018-01-05 20:10:47 +00:00
<%- className %> = new web3.eth.Contract(<%- className %>Abi);
<%- className %>.options.address = '<%- contract.deployedAddress %>';
<%- className %>.address = '<%- contract.deployedAddress %>';
<%- className %>.options.from = web3.eth.defaultAccount;
2018-01-17 15:04:11 +00:00
<% if (gasLimit != false) { %>
2018-01-13 16:38:10 +00:00
<%- className %>.options.gas = <%- gasLimit %>;
<%- className %>.options.gasLimit = <%- gasLimit %>;
2018-01-17 15:04:11 +00:00
<% } %>