Skip to content

Commit b48b7a0

Browse files
committed
Clarify the EDIT_MODEL transaction description and fix the model unit test
1 parent 2e94146 commit b48b7a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/transactions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ All non-edited fields remain the same.
261261
- lsfURL: `optional(string)` - URL to the Localized String File of this product.
262262
- schemaVersion: `optional(uint16)` - Schema version to support backward/forward compatability(default 0)
263263
- lsfRevision: `optional(uint32)` - LsfRevision is a monotonically increasing positive integer indicating the latest available version of Localized String File.
264-
- commissioningModeInitialStepsHint: `optional(uint32)` - commissioningModeInitialStepsHint SHALL identify a hint for the steps that can be used to put into commissioning mode a device that has not yet been commissioned. This field is a bitmap with values defined in the Pairing Hint Table. For example, a value of 1 (bit 0 is set) indicates that a device that has not yet been commissioned will enter Commissioning Mode upon a power cycle.
264+
- commissioningModeInitialStepsHint: `optional(uint32)` - commissioningModeInitialStepsHint SHALL identify a hint for the steps that can be used to put into commissioning mode a device that has not yet been commissioned. This field is a bitmap with values defined in the Pairing Hint Table. For example, a value of 1 (bit 0 is set) indicates that a device that has not yet been commissioned will enter Commissioning Mode upon a power cycle. Note that this value cannot be updated to 0.
265265
- In State: `model/Model/value/<vid>/<pid>`
266266
- Who can send:
267267
- Vendor account associated with the same vid who has created the model

x/model/handler_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func TestHandler_AddModel_CheckCommissioningModeInitialStepsHintHandling(t *test
196196

197197
// add new model
198198
msgCreateModel := NewMsgCreateModel(setup.Vendor)
199-
msgCreateModel.CommissioningModeInitialStepsHint = tc.expectedCommissioningModeInitialStepsHint
199+
msgCreateModel.CommissioningModeInitialStepsHint = tc.commissioningModeInitialStepsHint
200200
_, err := setup.Handler(setup.Ctx, msgCreateModel)
201201
require.NoError(t, err)
202202

0 commit comments

Comments
 (0)