Communities - Airdrop A Community Token - Switching Network To Testnet Does Not Work

by ADMIN 85 views

Introduction

In this article, we will be discussing a bug report related to the community token airdrop feature in a specific network. The issue arises when trying to switch the network to testnet, which does not work as expected. We will go through the steps to reproduce the issue, the expected behavior, and the actual behavior. Additionally, we will provide some additional information about the status of the desktop version and the operating system.

Bug Report

Description

The community token airdrop feature is not working as expected when trying to switch the network to testnet. The issue arises when the user is on the mainnet and tries to switch to the testnet network.

Steps to reproduce

Case 1: Community created on Testnet, user is on Mainnet

  1. Have a community created in a testnet network, for example Base Sepolia with at least one community collectible minted.
  2. Turn off Tesnet mode etc.
  3. Have a community created in a tesnet net
  4. Go to the community -> Airdrops -> initiate an airdrop
  5. The message 'The owner token is minted on a network that isn't selected. Click here to enable it:' and button 'Enable Base Sepolia' display
  6. Click 'Enable Base Sepolia'

Expected behavior

  • Base Sepolia testnet network to be activated
  • The testnet orange banner to display

Actual behavior

  • When clicking the button the network does not change
  • Error message shows 'WR-008 - no positive balance for your account across chains' because it is still acting as if the user was on mainnet instead of testnet.

Additional information

Case 2: Community created on Mainnet, user is on testnet

  1. Have a community created on mainnet with at least 1 community token minted
  2. Enable Testnet
  3. Go to the community and go to airdrop a token
  4. The message 'The owner token is minted on a network that isn't selected. Click here to enable it:' and button 'Enable Base Sepolia' do not display. Instead, error message shows 'WR-008 - no positive balance for your account across chains'

In this case, as in Case 1, the message of Step 4: 'The owner token is minted on a network that isn't selected. Click here to enable it:' and button 'Enable {network}' should show

Additional information

Additional Information

  • Status desktop version: RC 2.33 rc-1
  • Operating System: Mac OS Sonoma

Conclusion

In conclusion, the community token airdrop feature is not working as expected when trying to switch the network to testnet. The issue arises when the user is on the mainnet and tries to switch to the testnet network. The expected behavior is that the Base Sepolia testnet network should be activated and the testnet orange banner should display. However, the actual behavior is that the network does not change and an error message shows 'WR-008 - no positive balance for your account across chains'. This issue needs to be addressed to ensure that the community token airdrop feature works as expected.

Recommendations

Based on the analysis of the issue, the following recommendations are made:

  • Update the community token airdrop feature to ensure that it works as expected when switching the network to testnet.
  • Fix the error message 'WR-008 - no positive balance for your account across chains' to provide a clear and accurate message to the user.
  • Test the community token airdrop feature thoroughly to ensure that it works as expected in all scenarios.

Q&A

Q: What is the issue with the community token airdrop feature? A: The issue is that the community token airdrop feature is not working as expected when trying to switch the network to testnet. The user is on the mainnet and tries to switch to the testnet network, but the network does not change and an error message shows 'WR-008 - no positive balance for your account across chains'.

Q: What are the steps to reproduce the issue? A: The steps to reproduce the issue are as follows:

  • Case 1: Community created on Testnet, user is on Mainnet
    1. Have a community created in a testnet network, for example Base Sepolia with at least one community collectible minted.
    2. Turn off Tesnet mode etc.
    3. Have a community created in a tesnet net
    4. Go to the community -> Airdrops -> initiate an airdrop
    5. The message 'The owner token is minted on a network that isn't selected. Click here to enable it:' and button 'Enable Base Sepolia' display
    6. Click 'Enable Base Sepolia'
  • Case 2: Community created on Mainnet, user is on testnet
    1. Have a community created on mainnet with at least 1 community token minted
    2. Enable Testnet
    3. Go to the community and go to airdrop a token
    4. The message 'The owner token is minted on a network that isn't selected. Click here to enable it:' and button 'Enable Base Sepolia' do not display. Instead, error message shows 'WR-008 - no positive balance for your account across chains'

Q: What is the expected behavior? A: The expected behavior is that the Base Sepolia testnet network should be activated and the testnet orange banner should display.

Q: What is the actual behavior? A: The actual behavior is that the network does not change and an error message shows 'WR-008 - no positive balance for your account across chains'.

Q: What are the additional information provided? A: The additional information provided includes:

Q: What are the system requirements? A: The system requirements are:

  • Status desktop version: RC 2.33 rc-1
  • Operating System: Mac OS Sonoma

Q: What are the recommendations? A: The recommendations are:

  • Update the community token airdrop feature to ensure that it works as expected when switching the network to testnet.
  • Fix the error message 'WR-008 - no positive balance for your account across chains' to provide a clear and accurate message to the user.
  • Test the community token airdrop feature thoroughly to ensure that it works as expected in all scenarios.

Q: What is the conclusion? A: The conclusion is that the community token airdrop feature is not working as expected when trying to switch the network to testnet. The issue needs to be addressed to ensure that the community token airdrop feature works as expected.

Q: What is the next step? A: The next step is to update the community token airdrop feature to ensure that it works as expected when switching the network to testnet. Additionally, the error message 'WR-008 - no positive balance for your account across chains' needs to be fixed to provide a clear and accurate message to the user.