|
|
@ -171,6 +171,7 @@ export const deploy = async (payload: any, callback: any) => { |
|
|
|
...instance, |
|
|
|
...instance, |
|
|
|
shortname: payload.shortname, |
|
|
|
shortname: payload.shortname, |
|
|
|
shareTo: payload.shareTo, |
|
|
|
shareTo: payload.shareTo, |
|
|
|
|
|
|
|
showLogo: !!logo, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const files: Record<string, string> = { |
|
|
|
const files: Record<string, string> = { |
|
|
@ -192,7 +193,9 @@ export const deploy = async (payload: any, callback: any) => { |
|
|
|
files[`dir/${path}`] = resp.data; |
|
|
|
files[`dir/${path}`] = resp.data; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (logo) { |
|
|
|
files['dir/assets/logo.png'] = logo |
|
|
|
files['dir/assets/logo.png'] = logo |
|
|
|
|
|
|
|
} |
|
|
|
files['dir/CORS'] = '*' |
|
|
|
files['dir/CORS'] = '*' |
|
|
|
files['dir/index.html'] = files['dir/index.html'].replace( |
|
|
|
files['dir/index.html'] = files['dir/index.html'].replace( |
|
|
|
'assets/css/themes/remix-dark_tvx1s2.css', |
|
|
|
'assets/css/themes/remix-dark_tvx1s2.css', |
|
|
@ -341,7 +344,7 @@ export const initInstance = async ({ |
|
|
|
} |
|
|
|
} |
|
|
|
: { A: ids }; |
|
|
|
: { A: ids }; |
|
|
|
|
|
|
|
|
|
|
|
const logo = await axios.get('https://dev.remix-dapp.pages.dev/logo.png', { responseType: 'arraybuffer' }) |
|
|
|
// const logo = await axios.get('https://dev.remix-dapp.pages.dev/logo.png', { responseType: 'arraybuffer' })
|
|
|
|
|
|
|
|
|
|
|
|
await dispatch({ |
|
|
|
await dispatch({ |
|
|
|
type: 'SET_INSTANCE', |
|
|
|
type: 'SET_INSTANCE', |
|
|
@ -353,7 +356,7 @@ export const initInstance = async ({ |
|
|
|
natSpec, |
|
|
|
natSpec, |
|
|
|
solcVersion: getVersion(solcVersion), |
|
|
|
solcVersion: getVersion(solcVersion), |
|
|
|
...lowLevel, |
|
|
|
...lowLevel, |
|
|
|
logo: logo.data, |
|
|
|
// logo: logo.data,
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
}; |
|
|
|
}; |
|
|
|