mirror of
https://github.com/embarklabs/embark.git
synced 2026-08-31 19:41:11 +00:00
feat: support selecting what library to generate artifacts feat: support selecting what library to generate artifacts feat: support selecting what library to generate artifacts feat: support selecting what library to generate artifacts working web3 artifacts remove unnecessary request address code review issues fixes update tests WIP: add index.js in packages/plugins/embarkjs/ This is a pattern established in #2285 remove comment fix some code review issues
11 lines
504 B
Plaintext
11 lines
504 B
Plaintext
<%- className %>Config = <%- JSON.stringify(contract) %>;
|
|
<%- className %>Abi = <%- JSON.stringify(abi) %>;
|
|
<%- className %> = new web3.eth.Contract(<%- className %>Abi);
|
|
<%- className %>.options.address = '<%- contract.deployedAddress %>';
|
|
<%- className %>.address = '<%- contract.deployedAddress %>';
|
|
<%- className %>.options.from = web3.eth.defaultAccount;
|
|
<% if (gasLimit != false) { %>
|
|
<%- className %>.options.gas = <%- gasLimit %>;
|
|
<%- className %>.options.gasLimit = <%- gasLimit %>;
|
|
<% } %>
|