Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
DOBEN committed Feb 15, 2024
1 parent 7d338a9 commit a911126
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions front-end-tools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.1.0

- Add option to `deriveFromChain` given a module reference in Step 2.

## 3.0.2

- Fix error message when specifying input parameter without uploading schema.
Expand Down
2 changes: 1 addition & 1 deletion front-end-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "front-end-tools",
"packageManager": "yarn@4.0.2",
"version": "3.0.2",
"version": "3.1.0",
"license": "Apache-2.0",
"engines": {
"node": ">=16.x"
Expand Down
4 changes: 2 additions & 2 deletions front-end-tools/src/components/InitComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,8 @@ export default function InitComponent(props: ConnectionProps) {
)}
{shouldWarnNoEmbeddedSchema && (
<Alert variant="warning">
Warning: No schema was embedded in module. It is unknown if contract expects an input parameter.
No parameter schemas will be displayed
Warning: No schema was embedded in the module deployed on chain. It is unknown if contract
expects an input parameter. No parameter schemas will be displayed
</Alert>
)}
{shouldWarnInputParameterInSchemaIgnored && (
Expand Down
4 changes: 2 additions & 2 deletions front-end-tools/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ export const hexRegex = /^[0-9a-fA-F]+$/;
// Module reference displayed as placeholder in the input field.
export const MODULE_REFERENCE_PLACEHOLDER = '91225f9538ac2903466cc4ab07b6eb607a2cd349549f357dfdf4e6042dde0693';

// Available options to select in step 2 for deriving values from the module references.
// Available options to select in step 2 for deriving values from the module reference.
export const DO_NOT_DERIVE = { value: "Don't derive", label: "Don't derive" };
export const DERIVE_FROM_STEP_1 = { value: 'Derive from step 1', label: 'Derive from step 1' };
export const DERIVE_FROM_CHAIN = { value: 'Derive from chain', label: 'Derive from chain' };

// All available options to select in step 2 for deriving values from the module references.
// All available options to select in step 2 for deriving values from the module reference.
export const OPTIONS_DERIVE_FROM_MODULE_REFERENCE = [DO_NOT_DERIVE, DERIVE_FROM_STEP_1, DERIVE_FROM_CHAIN];

0 comments on commit a911126

Please sign in to comment.