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 default values for initial interaction #215

Merged
merged 2 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ function SigningSettings() {
<h2>Signing</h2>
<SizedBox height={20} />
<ParamBuilder
flixArgument={undefined}
parameter={{
identifier: "Proposer",
type: {
Expand All @@ -238,6 +239,7 @@ function SigningSettings() {
/>
<SizedBox height={12} />
<ParamBuilder
flixArgument={undefined}
parameter={{
identifier: "Payer",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function InteractionDefinitionManagerProvider(props: {
<Context.Provider
value={{
definition,
flixTemplate,
flixTemplate: flixTemplate ?? undefined,
parsedInteraction: data?.interaction,
partialUpdate,
setFclValue,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ export function InteractionRegistryProvider(props: {
}): ReactElement {
const defaultInteraction: InteractionDefinition = {
id: crypto.randomUUID(),
name: "Your first interaction",
name: "New interaction",
code: "",
fclValuesByIdentifier: new Map(),
initialOutcome: undefined,
transactionOptions: {
authorizerAddresses: [],
proposerAddress: "0xf8d6e0586b0a20c7",
payerAddress: "0xf8d6e0586b0a20c7",
proposerAddress: "",
payerAddress: "",
},
createdDate: new Date(),
updatedDate: new Date(),
Expand Down