persist deploy values in memory

This commit is contained in:
Valtteri Karesto
2022-06-29 11:32:15 +03:00
parent a9b64abb85
commit 5478f43609
3 changed files with 33 additions and 20 deletions

View File

@@ -126,6 +126,10 @@ export const deployHook = async (
data: SetHookData
) => {
if (typeof window !== "undefined") {
const activeFile = state.files[state.active]?.compiledContent
? state.files[state.active]
: state.files.filter((file) => file.compiledContent)[0];
state.deployValues[activeFile.name] = data;
const tx = await prepareDeployHookTx(account, data);
if (!tx) {
return;