fix using web3Dialog

pull/1910/head
yann300 3 years ago
parent baf36196b3
commit 65de849f98
  1. 2
      libs/remix-ui/run-tab/src/lib/actions/index.ts
  2. 5
      libs/remix-ui/run-tab/src/lib/actions/payload.ts

@ -110,7 +110,7 @@ const setupEvents = () => {
export const initWebDialogs = (envToasterContent: (env: { context: string, fork: string }, from: string) => void, web3Dialog: () => void) => async (dispatch: React.Dispatch<any>) => { export const initWebDialogs = (envToasterContent: (env: { context: string, fork: string }, from: string) => void, web3Dialog: () => void) => async (dispatch: React.Dispatch<any>) => {
dispatch(setEnvToasterContent(envToasterContent)) dispatch(setEnvToasterContent(envToasterContent))
dispatch(setWeb3Dialog) dispatch(setWeb3Dialog(web3Dialog))
} }
const updateAccountBalances = () => { const updateAccountBalances = () => {

@ -278,9 +278,10 @@ export const setEnvToasterContent = (content: (env: { context: string, fork: str
} }
} }
export const setWeb3Dialog = () => { export const setWeb3Dialog = (web3Dialog: () => void) => {
return { return {
type: 'SET_WEB3_DIALOG' type: 'SET_WEB3_DIALOG',
payload: web3Dialog
} }
} }

Loading…
Cancel
Save