alias to the abi property in an object
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
parent
836fbfbc47
commit
12836f53e8
|
@ -44,6 +44,8 @@ EmbarkJS.Contract = function(options) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ContractClass.abi = ContractClass.options.abi;
|
||||||
|
|
||||||
var messageEvents = function() {
|
var messageEvents = function() {
|
||||||
this.cb = function() {};
|
this.cb = function() {};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<%- className %>Abi = <%- abi %>;
|
<%- className %>Abi = <%- abi %>;
|
||||||
<%- className %> = new web3.eth.Contract(<%- className %>Abi);
|
<%- className %> = new web3.eth.Contract(<%- className %>Abi);
|
||||||
<%- className %>.options.address = '<%- contract.deployedAddress %>';
|
<%- className %>.options.address = '<%- contract.deployedAddress %>';
|
||||||
|
<%- className %>.abi = <%- abi %>;
|
||||||
<%- className %>.address = '<%- contract.deployedAddress %>';
|
<%- className %>.address = '<%- contract.deployedAddress %>';
|
||||||
<%- className %>.options.from = web3.eth.defaultAccount;
|
<%- className %>.options.from = web3.eth.defaultAccount;
|
||||||
<% if (gasLimit != false) { %>
|
<% if (gasLimit != false) { %>
|
||||||
|
|
Loading…
Reference in New Issue