Skip to content

Commit

Permalink
fix(react): switch evm routerchain client to provider
Browse files Browse the repository at this point in the history
  • Loading branch information
jayeshbhole-rp committed Jan 9, 2025
1 parent d866170 commit e9fa5ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @tangled3/react

## 1.16.24

### Patch Changes

- fix(react): switch evm routerchain client to provider

## 1.16.23

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tangled3/react",
"private": false,
"version": "1.16.23",
"version": "1.16.24",
"type": "module",
"license": "MIT",
"main": "./src/index.ts",
Expand Down
5 changes: 1 addition & 4 deletions packages/react/src/actions/sendTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,9 @@ export const sendTransactionToChain = (async ({ chain, to, from, value, args, co
});

const walletConnector = config.connector as WalletInstance<'evm'>;
const injectedSigner = await walletConnector.getClient?.({
const injectedSigner = await walletConnector.getProvider({
chainId: chain.id,
});
if (!injectedSigner) {
throw new Error("Couldn't get injected signer");
}

const txResponse = await sendEthTxnToRouterChainPf({
networkEnv: chain.extra.environment,
Expand Down

0 comments on commit e9fa5ba

Please sign in to comment.