@acala-network/chopsticks 0.9.6-2 → 0.9.6-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ const schema = _zod.z.object({
16
16
  ..._index.configSchema.shape,
17
17
  extrinsic: _zod.z.string({
18
18
  description: 'Extrinsic or call to dry run. If you pass call here then address is required to fake signature'
19
- }),
19
+ }).optional(),
20
20
  address: _zod.z.string({
21
21
  description: 'Address to fake sign extrinsic'
22
22
  }).optional(),
@@ -16,6 +16,9 @@ const _openhtml = require("../../utils/open-html.js");
16
16
  const _context = require("../../context.js");
17
17
  const dryRunExtrinsic = async (argv)=>{
18
18
  const context = await (0, _context.setupContext)(argv);
19
+ if (!argv.extrinsic) {
20
+ throw new Error('Extrinsic is required');
21
+ }
19
22
  const input = argv['address'] ? {
20
23
  call: argv['extrinsic'],
21
24
  address: argv['address']
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const dryRunSchema: z.ZodObject<{
3
- extrinsic: z.ZodString;
3
+ extrinsic: z.ZodOptional<z.ZodString>;
4
4
  address: z.ZodOptional<z.ZodString>;
5
5
  preimage: z.ZodOptional<z.ZodString>;
6
6
  at: z.ZodOptional<z.ZodString>;
@@ -85,7 +85,7 @@ export declare const dryRunSchema: z.ZodObject<{
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  port: number;
87
87
  'build-block-mode': import("@acala-network/chopsticks-core").BuildBlockMode;
88
- extrinsic: string;
88
+ extrinsic?: string | undefined;
89
89
  address?: string | undefined;
90
90
  preimage?: string | undefined;
91
91
  at?: string | undefined;
@@ -120,7 +120,7 @@ export declare const dryRunSchema: z.ZodObject<{
120
120
  'offchain-worker'?: boolean | undefined;
121
121
  resume?: number | boolean | `0x${string}` | undefined;
122
122
  }, {
123
- extrinsic: string;
123
+ extrinsic?: string | undefined;
124
124
  address?: string | undefined;
125
125
  preimage?: string | undefined;
126
126
  at?: string | undefined;
@@ -29,7 +29,7 @@ const dryRunSchema = _zod.z.object({
29
29
  ..._index.configSchema.shape,
30
30
  extrinsic: _zod.z.string({
31
31
  description: 'Extrinsic or call to dry run. If you pass call here then address is required to fake signature'
32
- }),
32
+ }).optional(),
33
33
  address: _zod.z.string({
34
34
  description: 'Address to fake sign extrinsic'
35
35
  }).optional(),