Add Admin

Add Admin user flow testing

  1. Ensure that admin hasn't been created in the chain storage.

To view the storage of admin, follow the steps below.

  • Go to the Developer tab in menu bar.

  • Select Chain State from Developer menu list.

  • Select a pallet buckets from the dropdown menu.

  • Select the admin function using the dropdown input field.

  • Make sure to select admin ID and admin account in the input field.

  • Click the ⊕ plus button on the right side.

  • You will see 'None'; this means no admin has been created yet.

  1. Open the Developer tab, then click Extrinsics.

  1. Select the buckets pallet from the dropdown input field.

  1. Select the 'add admin' extrinsic function.

  1. Select namespace id, bucket id, and admin as shown below.

  1. Click on “Submit Transaction.”

  1. On success, it emits the AdminAdded event.

  1. To view the storage changes of a admin added, follow the steps below.

  • Go to the Developer tab in menu bar.

  • Select Chain State from Developer menu list.

  • Select the buckets pallet from the state query dropdown input field.

  • Select the admins from the dropdown input field.

  • Choose admin id and account then click the ⊕ plus button on the right side.

You will see 'null', which means the admin has been added.

Last updated