The name 'lastActiveState' does not exist in the current context

Hi guys !

I am working on a project based on unity-web3-sample-nft-shop and unity-web3-sample-elden-ring.

A little description of my project:
I will have a scene, in the scene there will be 2 sphere objects (sphere A and sphere B).

Clicking on sphere A changes the scene to unity-web3-sample-elden-ring.

Clicking on sphere B changes the scene to unity-web3-sample-nft-shop.

And I got it done that clicking on sphere A changes the scene to unity-web3-sample-elden-ring.

I opened the project unity-web3-sample-nft-shop and exported the package to import into my project, I also renamed the script file to avoid duplicate names.

And this is the error I am getting