@fairmint/safe-js
Advanced tools
Comparing version 1.5.4 to 1.5.5
{ | ||
"name": "@fairmint/safe-js", | ||
"version": "1.5.4", | ||
"version": "1.5.5", | ||
"description": "Safe javascript library.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -68,2 +68,12 @@ const Ethers = require("ethers"); | ||
async getTotalInvested() { | ||
try { | ||
return await this.dat.totalInvested(); | ||
} | ||
catch (err) { | ||
console.log("No total invested"); | ||
return 0; | ||
} | ||
} | ||
/** | ||
@@ -95,3 +105,3 @@ * @notice Call anytime to refresh information about the org. | ||
this.dat.fundraisingGoal(), | ||
this.dat.totalInvested(), | ||
this.getTotalInvested(), | ||
this.dat.totalSupply(), | ||
@@ -98,0 +108,0 @@ this.dat.beneficiary(), |
130728
5351