Adding Letting Agent
Adding Letting Agent user flow testing
Adding Letting Agent
Ensure that the letting agent account has not been registered in storage.
To view the storage of a registered letting account, follow the steps below:
Go to the Developer tab in menu bar.
Select Chain State from Developer menu list.

Select a propertyManagement from the dropdown menu.

Select the lettingInfo function using the dropdown input field.

Make sure to select Dave as the account id.
Click the ⊕ plus button on the right side.
You will see 'None'; this means no letting agent has been registered yet.

Open the Developer tab, then click Extrinsics.

Ensure that DAVE is registered as an admin and assigned the role of LettingAgent.
Select the propertyManagement pallet from the dropdown input field.

Select the 'add letting agent' extrinsic function.

Select an admin account as the origin (e.g., DAVE) and ensure it has a sufficient token balance.
Which you can verify under the Accounts tab → Accounts menu.

Ensure that region id 1 and location id 1 are created.
Input region id 1 and location id as 1

Click Submit Transaction.

On success, it emits the LettingAgentAdded event.

To view the storage changes of a letting agent created, follow the steps below.
Go to the Developer tab in menu bar.
Select Chain State from Developer menu list.

Select a propertyManagement from the dropdown menu.

Select the lettingInfo function using the dropdown input field.

Choose Dave admin account.
click the ⊕ plus button on the right side.
You will see lettingInfo, which means agent added in storage.

Last updated