embark-area-51/lib/contracts/code_templates/vanilla-contract.js.ejs

10 lines
416 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-13 16:38:10 +00:00
if (<%- gasLimit %>) {
<%- className %>.options.gas = <%- gasLimit %>;
<%- className %>.options.gasLimit = <%- gasLimit %>;
}