Open fadeev opened 2 months ago
@fadeev We haven't used this function in any examples yet, have we?
@fadeev We haven't used this function in any examples yet, have we?
Not yet, no, but it can be used with this example https://github.com/zeta-chain/example-contracts/tree/main/omnichain/swap
Right now the function reads a key from a filesystem. This works in a Hardhat/Node.js environment, but of course doesn't work in a browser.
https://github.com/zeta-chain/toolkit/blob/73b823d9341b2e30e6ece801c8cbe19daaca7e5d/packages/client/src/solanaDeposit.ts
We need to ensure that the function can be used from a browser.
For EVM chains we're using Ethers signer. For Solana I'm assuming it's going to be something else. Although, RainbowKit integrates with Solana.
Related: https://github.com/zeta-chain/toolkit/issues/180