def deployGnosisSafe(self, params, signer):
    encodedParams = self.masterCopy.setup.encode_input(params.owners, params.threshold, params.to, params.data, params.fallbackHandler, params.paymentToken, params.payment, params.paymentReceiver)
    tx = self.proxyFactory.createProxy(self.masterCopy, encodedParams, {'from': signer})
    return Contract.from_abi('GnosisSafe', tx.events['ProxyCreation'][0]['proxy'], registry.gnosis_safe.artifacts.GnosisSafe['abi'])
def deployGnosisSafe(self, params, signer):
    encodedParams = self.masterCopy.setup.encode_input(params.owners, params.threshold, params.to, params.data, params.fallbackHandler, params.paymentToken, params.payment, params.paymentReceiver)
    tx = self.proxyFactory.createProxy(self.masterCopy, encodedParams, {'from': signer})
    return Contract.from_abi('GnosisSafe', tx.events['ProxyCreation'][0]['proxy'], registry.gnosis_safe.artifacts.GnosisSafe['abi'])