Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruiub3i committed May 21, 2021
1 parent 60f497a commit 0907567
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/models/IContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ class IContract {
return res;
};

/**
* @function
* @description Get Web3 Contract to interact directly with the web3 library functions like events (https://web3js.readthedocs.io/en/v1.2.11/web3-eth-contract.html?highlight=events#contract-events)
*/
async getWeb3Contract() {
return this.params.contract.getContract();
}

/**
* @function
* @description Set New Owner of the Contract
Expand Down

0 comments on commit 0907567

Please sign in to comment.