Merge pull request #466 from embark-framework/abiFixes

alias to the abi property in an object
This commit is contained in:
Iuri Matias 2018-05-30 15:37:42 -04:00 committed by GitHub
commit 01fc78059e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ EmbarkJS.Contract = function(options) {
ContractClass = new this.web3.eth.Contract(this.abi, this.address);
ContractClass.setProvider(this.web3.currentProvider);
ContractClass.options.data = this.code;
ContractClass.abi = ContractClass.options.abi;
return ContractClass;
} else {
ContractClass = this.web3.eth.contract(this.abi);