Add Contributor

Add Contributor user flow testing

Add a contributer.

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

To view the storage of bucket, 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 contributors function using the dropdown input field.

  • Make sure to select contributor ID in the input field.

  • Click the ⊕ plus button on the right side.

  • You will see 'None'; this means no contributor 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 contributor' extrinsic function.

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

  1. Make sure namespace has been created.

Create Namespace
  1. Make sure bucket has been created.

Create Bucket
  1. Make sure contributor has been assigned as admin.

Add Admin
  1. Click on “Submit Transaction.”

  1. On success, it emits the ContributorAdded event.

  1. To view the storage changes of a contributor created, 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 contributors from the dropdown input field.

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

You will see 'null', which means the contributor has been created.

Last updated