Developer Diaries I: A Deep Dive into MultiversX DApp Development

In the rapidly changing blockchain world, keeping up with updates is crucial. As developers of the SpaceRobots NFT project on MultiversX, we faced unexpected challenges that tested our adaptability, technical skills, and commitment to our users.

Developer Diaries I: A Deep Dive into MultiversX DApp Development

In the ever-evolving landscape of blockchain technology, staying abreast of the latest updates is not just advantageous—it's imperative. We, the developers behind the SpaceRobots NFT project on the MultiversX blockchain, learned this lesson through an unexpected challenge that tested our adaptability, technical acumen, and dedication to our user community.

The Genesis of the Problem

Our journey into the unforeseen began with a perplexing issue: users of the xPortal App were prompted for it with each new transaction attempt despite not enabling two-factor authentication (2FA). We have traced this exception to outdated MultiversX libraries within our React DApp.

Determined to resolve this, we updated our libraries, only to encounter a more challenging obstacle. The update interfered with our login procedure, specifically the second approval prompt within the xPortal mobile application, which was crucial for user authentication. This hiccup in our login flow was more than a technical glitch — a barrier between our users and the SpaceRobots universe we had meticulously crafted.

The Quest for a Solution

Our initial approaches were systematic, and yet all attempts failed. We experimented with various library combinations, updated the mobile app, and cleared the cache to no avail. In search of answers, we contacted the MultiversX developers, but the issue's complexity left us needing a more straightforward solution.

In our pursuit, we turned to the MultiversX Template DApp, dissecting its source code for insights. Yet, aligning our code with theirs brought us no closer to resolution. It was a disheartening phase, filled with trial and error yet devoid of progress.

A Breakthrough from Uncharted Territories

The turning point came when we decided to invert our strategy. Instead of grafting external solutions onto our project, we integrated our existing code into the MultiversX Template DApp. This painstaking process was done incrementally, ensuring that each step's login functionality remained intact.

Our perseverance paid off. We restored the login functionality and stumbled upon an unexpected yet crucial change: transitioning from npm to yarn as our package manager. It required a lot of effort, but this seemingly minor adjustment was the key that unlocked our project's potential once more.


Reflecting on Our Journey

The path to overcoming our login issue was neither direct nor easy. It was a testament to the unpredictable nature of blockchain development and the importance of community, adaptability, and continuous learning. Through this ordeal, we've gleaned several insights:

  • The Importance of Keeping Up-to-Date: Our initial issue stemmed from outdated libraries, a reminder of the technological treadmill that is blockchain development.
  • Community as a Beacon: Although the MultiversX core developers did not provide a direct resolution, engaging with the community members led us to the solution.
  • Adaptability is Key: Although not a solution we initially considered, the switch to yarn highlighted the importance of flexibility in our tools and approaches.

Sharing Our Learnings

Our experience, while challenging, is expected in the realm of DApp development. It underscores the reality that solutions often come from rethinking our approach and being open to change, even in minor details.

We share our story, hoping that it aids others in navigating similar challenges and fosters a spirit of collaboration and innovation within the MultiversX developer community. May our journey remind us that persistence and a willingness to adapt can lead to breakthroughs in adversity.

We invite you to join us in this continuous learning journey and share your experiences. Let's push the boundaries of what's possible in the blockchain space.

This journey was just one chapter in the ongoing saga of Space Robots. 

For more insights and updates and to join our community.

//: End of transmission: Stay tuned ⚡
Linktree: http://linktr.ee/spacerobots

Space Robots Team @ Racyon Industries

Want never to miss updates from Space Robots? Subscribe to the newsletter.