So, i’m building a plugin to connect and make transactions on Tezos network. Ok, this is fine, i already make a lots of steps, but i have a big problem. On my “initialize” i use this:
…
const tdz = taquito;
instance.data.Tezos = new tdz.TezosToolkit('https://mainnet.ecadinfra.com')
...
instance.data.beacon = new beaconWallet.BeaconWallet(options)
instance.data.Tezos.setWalletProvider(instance.data.beacon)
...
I have a connect function to connect on my page, this works fine.
The problem is, when i go to other page, i loose the preview login, and then, if i need to call another function from my plugin, it won’t work, because i need to this all the connect function again. Yeah, i can call the connect function again, but i don’t want this way.
Just a little bit of context, this isn’t a normal plugin, but a Blockchain sign, so, i need to save this 'instance.data.Tezos.setWalletProvider" and " instance.data.beacon" between pages to work (i think). It’s like i need to save the user wallet between pages, and idk how to do it.