Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix front end tools error message #142

Merged
merged 15 commits into from
Dec 5, 2023
Merged
Prev Previous commit
Next Next commit
Change error message when schema does not exist
  • Loading branch information
lassemoldrup committed Nov 29, 2023
commit a34ed50f70b1ce3b0fb80695a77a3e955cbcb16d
4 changes: 3 additions & 1 deletion front-end-tools/src/components/UpdateComponent.tsx
Original file line number Diff line number Diff line change
@@ -143,7 +143,9 @@ export default function UpdateComponenet(props: ConnectionProps) {

const schema = deriveContractInfo ? embeddedModuleSchemaBase64 : uploadedModuleSchemaBase64;
if (schema === undefined) {
setSchemaError('Schema was not uploaded');
setSchemaError(
'Schema was not uploaded or not embedded into the module. Uncheck the "Derive From Smart Contract Index" checkbox to manually upload a schema or uncheck "Has Input Paramter" checkbox if this entrypoint has no input parameter'
);
return;
}