WIP commit: fix fetching safe, next problem: funds.toNumber is not a function

This commit is contained in:
mmv 2019-03-11 14:41:26 +04:00
parent 78dc0d7bb0
commit 659eb9e48c
2 changed files with 7 additions and 2 deletions

View File

@ -44,7 +44,9 @@ const styles = () => ({
}, },
}) })
const Layout = openHoc(({ open, toggle, clickAway, classes, providerInfo, providerDetails }: Props) => ( const Layout = openHoc(({
open, toggle, clickAway, classes, providerInfo, providerDetails,
}: Props) => (
<React.Fragment> <React.Fragment>
<Row className={classes.summary}> <Row className={classes.summary}>
<Col start="xs" middle="xs" className={classes.logo}> <Col start="xs" middle="xs" className={classes.logo}>

View File

@ -34,8 +34,11 @@ export const createSafe = async (values: Object, userAccount: string, addSafe: A
await initContracts() await initContracts()
const safe = await deploySafeContract(accounts, numConfirmations, userAccount) const safe = await deploySafeContract(accounts, numConfirmations, userAccount)
checkReceiptStatus(safe.tx) checkReceiptStatus(safe.tx)
console.log(safe)
const param = safe.logs[0].args.proxy const param = safe.logs[0].args.proxy
const safeContract = GnosisSafe.at(param) console.log(param)
const safeContract = await GnosisSafe.at(param)
console.log(safeContract)
addSafe(name, safeContract.address, numConfirmations, owners, accounts) addSafe(name, safeContract.address, numConfirmations, owners, accounts)