Skip to content

Commit ee0a3aa

Browse files
committed
fix: fix undefined chain
1 parent a420a96 commit ee0a3aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/plugin-evm/src/providers/wallet.ts

+1
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ export const evmWalletProvider: Provider = {
217217
);
218218
const address = walletProvider.getAddress();
219219
const balance = await walletProvider.getWalletBalance();
220+
const chain = walletProvider.getCurrentChain();
220221
return `EVM Wallet Address: ${address}\nBalance: ${balance} ETH\nChain ID: ${chain.id}, Name: ${chain.name}, Native Currency: ${chain.nativeCurrency}`;
221222
} catch (error) {
222223
console.error("Error in EVM wallet provider:", error);

0 commit comments

Comments
 (0)