Bubble Plugin Not Working after Upgrade to Version 4

Hello Bubblers,

In June, we built a private plugin to render NFTs from a quantum state (uint256). Given a deterministic quantum circuit, the right NFT was being rendered.

We recently upgraded to the bubble plugin api version 4. Since, the incorrect NFT is being rendered. We’ve checked the smart contract address, ABI, parameters, network id, chrome developer tools for error messages, tried rolling back to previous plugin versions, and rechecking the plugin parameters. But we are still getting the wrong NFT.

This is the plugin code.

This is the URL to our app.
These are the steps to generate the NFT:

  1. Select ‘2’ qubits from the dropdown.
  2. In the multi-input field, type in “HI,CN.” (without the quotes)
  3. Click ‘Run Circuit’

This is the wrong NFT being generated.
image
The correct NFT that should be generated is either white or black with 50% probability each.
image

Is there something I’m missing? I would greatly appreciate if someone can share some insight.

Thanks very much.

v4 api is about server actions, not client side actions, so it doesn’t affect your code.
If you don’t get the right result the problem is in your code or in your assumptions.

3 Likes