diff --git a/app/components/contract-form/Functions.js b/app/components/contract-form/Functions.js index 236ed48..59aec63 100644 --- a/app/components/contract-form/Functions.js +++ b/app/components/contract-form/Functions.js @@ -280,8 +280,7 @@ export default class Functions extends Component { const { Text } = Typography const { renderInputs, renderEthInput, createLabel, handleSubmit } = this - const { file: { abi, method_identifiers } } = this.props - const { functionCallResults } = this.props + const { file: { abi, method_identifiers }, functionCallResults } = this.props return ( diff --git a/app/sagas/file/reCompileFile.js b/app/sagas/file/reCompileFile.js index 9255e0e..33cd9bf 100644 --- a/app/sagas/file/reCompileFile.js +++ b/app/sagas/file/reCompileFile.js @@ -19,9 +19,11 @@ export default function* reCompileFile(action) { // fetch new file content const file = yield call(fetchFile, action.file) // compile file - const compiledFile = yield call(compileVyperFile, file) + let compiledFile = yield call(compileVyperFile, file) + compiledFile = { ...compiledFile, deployedAt: { addresses: [], selected: {} } } // save file in database - const query_find = { _id: file._id } + const { _id } = action.file + const query_find = { _id } const query_change = { $set: { ...compiledFile } } yield call(promiseDbUpdate, Files, query_find, query_change) // update view