Add contract address accessor
This commit is contained in:
1 parent
3df0831d9b
commit
ffff09ab23
1 file changed
+4
@@ -7,6 +7,10 @@ class Base {
|
||||
return this.contract.functions;
|
||||
}
|
||||
|
||||
get address () {
|
||||
return this.contract.address;
|
||||
}
|
||||
|
||||
get ipfs () {
|
||||
if (!this._ipfsAPI) { throw new Error('IPFS API not configured; please set an ipfs instance'); }
|
||||
return this._ipfsAPI;
|
||||
|
||||
Reference in new issue
Block a user