Skip to content

Commit

Permalink
add strings to fnvalue expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
simke9445 committed Mar 19, 2024
1 parent f65ae42 commit 9222d15
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { operatorLabel } from '../../../operatorLabel';
type ExprValue =
| warp_resolver.NumValueFor_Uint256And_NumExprOpAnd_IntFnOp
| warp_resolver.NumValueFor_Decimal256And_NumExprOpAnd_DecimalFnOp
| warp_resolver.NumValueForInt128And_NumExprOpAnd_IntFnOp;
| warp_resolver.NumValueForInt128And_NumExprOpAnd_IntFnOp
| warp_resolver.StringValueFor_String;

export type ExpressionValueProps = {
value: ExprValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,13 @@ export const UpdateFnValue = (props: UpdateFnValueProps) => {
);
}

if ('string' in value) {
return (
<span>
String: <ExpressionValue value={value.string} variables={variables} />
</span>
);
}

return null;
};

0 comments on commit 9222d15

Please sign in to comment.