Skip to content

Commit 31c6fd6

Browse files
committed
Add FieldCommission to form helpers
1 parent a054b74 commit 31c6fd6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/form.ts

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import {
55
getFieldAmountSchema,
66
getFieldBoolean,
77
getFieldBooleanSchema,
8+
getFieldCommission,
9+
getFieldCommissionSchema,
810
getFieldDescription,
911
getFieldDescriptionSchema,
1012
getFieldNumber,
@@ -33,6 +35,7 @@ export const getField = (fieldName: string) =>
3335
getFieldBoolean(fieldName) ||
3436
getFieldTimeoutHeight(fieldName) ||
3537
getFieldDescription(fieldName) ||
38+
getFieldCommission(fieldName) ||
3639
null;
3740

3841
const getFieldSchema = (fieldName: string, schemaInput: FieldSchemaInput) =>
@@ -43,6 +46,7 @@ const getFieldSchema = (fieldName: string, schemaInput: FieldSchemaInput) =>
4346
getFieldBooleanSchema(fieldName) ||
4447
getFieldTimeoutHeightSchema(fieldName) ||
4548
getFieldDescriptionSchema(fieldName) ||
49+
getFieldCommissionSchema(fieldName) ||
4650
null;
4751

4852
export const getMsgSchema = (fieldNames: readonly string[], schemaInput: FieldSchemaInput) => {

0 commit comments

Comments
 (0)