fix gnosisSafe.getThresold is not a function

This commit is contained in:
mmv 2019-03-11 16:18:06 +04:00
parent 866d2a57cb
commit b575db5474
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ const buildOwnersFrom = (safeOwners: string[], storedOwners: Map<string, string>
export const buildSafe = async (safeAddress: string, safeName: string) => {
const web3 = getWeb3()
const GnosisSafe = await getGnosisSafeContract(web3)
const gnosisSafe = GnosisSafe.at(safeAddress)
const gnosisSafe = await GnosisSafe.at(safeAddress)
const threshold = Number(await gnosisSafe.getThreshold())
const owners = List(buildOwnersFrom(await gnosisSafe.getOwners(), getOwners(safeAddress)))