diff --git a/package-lock.json b/package-lock.json index 118503e4c..429ed2855 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10004,16 +10004,15 @@ } }, "node_modules/nanoid": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", - "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", + "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", "funding": [ { "type": "github", "url": "https://github.com/sponsors/ai" } ], - "license": "MIT", "bin": { "nanoid": "bin/nanoid.cjs" }, diff --git a/src/features/app-interfaces/components/create/deploy-app.tsx b/src/features/app-interfaces/components/create/deploy-app.tsx index b34940632..2f4d6de4e 100644 --- a/src/features/app-interfaces/components/create/deploy-app.tsx +++ b/src/features/app-interfaces/components/create/deploy-app.tsx @@ -21,7 +21,7 @@ import { isArc32AppSpec, isArc56AppSpec } from '@/features/common/utils' import { asAppCallTransactionParams, asMethodCallParams } from '@/features/transaction-wizard/mappers' import { asArc56AppSpec, asMethodDefinitions } from '@/features/applications/mappers' import { Arc32AppSpec, TemplateParamType } from '../../data/types' -import { CreateOnComplete } from '@algorandfoundation/algokit-utils/types/app-factory' +import { CreateOnComplete, CreateSchema } from '@algorandfoundation/algokit-utils/types/app-factory' import { AppClientBareCallParams, AppClientMethodCallParams } from '@algorandfoundation/algokit-utils/types/app-client' import { MethodDefinition } from '@/features/applications/models' import { DescriptionList, DescriptionListItems } from '@/features/common/components/description-list' @@ -71,23 +71,23 @@ export function DeployApp({ machine }: Props) { const appSpec = state.context.appSpec - const asDeployCreateParams = async ( - transaction: BuildTransactionResult - ): Promise<(AppClientMethodCallParams & CreateOnComplete) | (AppClientBareCallParams & CreateOnComplete)> => { + const asDeployCreateParams = async (transaction: BuildTransactionResult) => { if (transaction.type === BuildableTransactionType.MethodCall) { const { appId: _, ...params } = await asMethodCallParams(transaction) return { ...params, method: params.method.name, onComplete: params.onComplete, - } satisfies AppClientMethodCallParams & CreateOnComplete + extraProgramPages: transaction.extraProgramPages, + } satisfies AppClientMethodCallParams & CreateOnComplete & CreateSchema } else if (transaction.type === BuildableTransactionType.AppCall) { const { appId: _, ...params } = asAppCallTransactionParams(transaction) invariant(params.onComplete !== algosdk.OnApplicationComplete.ClearStateOC, 'Clear state is not supported for app creates') return { ...params, onComplete: params.onComplete, - } satisfies AppClientBareCallParams & CreateOnComplete + extraProgramPages: transaction.extraProgramPages, + } satisfies AppClientBareCallParams & CreateOnComplete & CreateSchema } throw new Error('Invalid transaction type') } diff --git a/src/features/app-interfaces/pages/create-app-interface-page.tsx b/src/features/app-interfaces/pages/create-app-interface-page.tsx index 687bba733..4ff88921a 100644 --- a/src/features/app-interfaces/pages/create-app-interface-page.tsx +++ b/src/features/app-interfaces/pages/create-app-interface-page.tsx @@ -94,7 +94,7 @@ function CreateAppInterfaceInner() { if (state.matches('createAppInterface')) { return ( -
+