From ffff09ab23d504a60715355ae507952c4270c582 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Fri, 17 May 2019 15:56:24 +0200 Subject: [PATCH] Add contract address accessor --- lib/contracts/base.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/contracts/base.js b/lib/contracts/base.js index 8d9d189..9cbcb7a 100644 --- a/lib/contracts/base.js +++ b/lib/contracts/base.js @@ -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;