Add contract address accessor
This commit is contained in:
parent
3df0831d9b
commit
ffff09ab23
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user