mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-27 09:54:51 +00:00
give render function a more meaningful name
This commit is contained in:
parent
267f271364
commit
ead30855a6
@ -18,7 +18,7 @@ import { whenSafeDeployed } from './builder/safe.dom.utils'
|
||||
|
||||
afterEach(cleanup)
|
||||
|
||||
const fillOpenSafeForm = async (localStore: Store<GlobalState>) => {
|
||||
const renderOpenSafeForm = async (localStore: Store<GlobalState>) => {
|
||||
const provider = await getProviderInfo()
|
||||
const walletRecord = makeProvider(provider)
|
||||
localStore.dispatch(addProvider(walletRecord))
|
||||
@ -87,7 +87,7 @@ const deploySafe = async (safe: React$Component<{}>, threshold: number, numOwner
|
||||
}
|
||||
|
||||
const aDeployedSafe = async (specificStore: Store<GlobalState>, threshold?: number = 1, numOwners?: number = 1) => {
|
||||
const safe: React$Component<{}> = await fillOpenSafeForm(specificStore)
|
||||
const safe: React$Component<{}> = await renderOpenSafeForm(specificStore)
|
||||
const safeAddress = await deploySafe(safe, threshold, numOwners)
|
||||
|
||||
return safeAddress
|
||||
|
Loading…
x
Reference in New Issue
Block a user