Open solidsnakedev opened 1 month ago
Somewhat related, I created a selectWallet.fromRandom
method that creates a random wallet so I get the provider functions and all the other functions don't fail when I don't need address and UTXOs. It's quite simple in that it generates a random seed phrase, derives the address, then passes in the address and empty UTXO array into selectWallet.fromAddress
Currently Lucid is not capable to init without passing a provider, this is problematic when you just want to select a wallet and signing a transaction from an api.
The ideal workflow should be as follows.
At the same time the side effects from having an undefined expression is problematic as well, therefore Lucid must be converted to Effect type so we can have a better error control
https://github.com/Anastasia-Labs/lucid-evolution/blob/85bfd542c3de3decdc0842ab7cac6833a0f83ebd/packages/lucid/src/lucid-evolution/LucidEvolution.ts#L71-L74