Hello! We’re attempting to add Fireblocks support to our Solana Dapp but can’t seem to connect it to our sandbox environment. We can get past the “Connect vault to Dapp” step and we see our Dapp pop up in the Web3 access dashboard for a split second, but it immediately disappears and any signing/transactions from our dapp go nowhere. Here’s a relevant code snippet:
export function SolanaProvider({ children }: WCProps) {
// The network can be set to 'devnet', 'testnet', or 'mainnet-beta'.
const isDev = checkIsDev()
const network = isDev
? WalletAdapterNetwork.Devnet
: WalletAdapterNetwork.Mainnet
// You can also provide a custom RPC endpoint.
const endpoint = useMemo(() => clusterApiUrl(network), [network])
const wallets = useMemo(
() => [
new CoinbaseWalletAdapter(),
new LedgerWalletAdapter(),
new SolflareWalletAdapter(),
new TrezorWalletAdapter(),
new WalletConnectWalletAdapter({
network,
options: {
projectId: process.env.REACT_APP_WALLETCONNECT_PROJECT_ID as string,
},
}),
],
// eslint-disable-next-line react-hooks/exhaustive-deps
[network],
)
return (
<ConnectionProvider endpoint={endpoint}>
<WalletProvider wallets={wallets} autoConnect>
<WalletModalProvider>{children}</WalletModalProvider>
</WalletProvider>
</ConnectionProvider>
)
Our dependencies:
"react": "^18.2.0",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/wallet-adapter-react-ui": "^0.9.35",
"@solana/wallet-adapter-wallets": "^0.19.32",
"@web3-react/coinbase-wallet": "^8.2.0",
"@walletconnect/universal-provider": "2.15.2",
"@walletconnect/core": "2.15.2",
"@walletconnect/types": "2.15.2",
"@walletconnect/utils": "2.15.2"
Our Dapp also supports EVM and that has no problems connecting + signing transactions with Fireblocks, so we’re a little confused.
Here’s a video of the bug: fireblocksbug.mp4 - Google Drive