Skip to content

Commit be02cf9

Browse files
committed
feat: add compose_hash_registered to provision response schema
Support skipping wallet interaction when compose hash is already registered on-chain. The backend now returns this field during provision, and the frontend can skip the addComposeHash transaction.
1 parent c6e16ef commit be02cf9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

js/src/actions/cvms/provision_cvm_compose_file_update.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ describe("provisionCvmComposeFileUpdate", () => {
3535
app_id: "app-123",
3636
device_id: "device-456",
3737
compose_hash: "abc123def456",
38+
compose_hash_registered: false,
3839
kms_info: {
3940
id: "kms-123",
4041
slug: "test-kms",

js/src/actions/cvms/provision_cvm_compose_file_update.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export const ProvisionCvmComposeFileUpdateResultSchema = z
126126
device_id: z.string().nullable(),
127127
compose_hash: z.string(),
128128
kms_info: KmsInfoSchema.nullable().optional(),
129+
compose_hash_registered: z.boolean().optional().default(false),
129130
})
130131
.passthrough();
131132

0 commit comments

Comments
 (0)