Skip to content

Commit c85c089

Browse files
author
Nguyen Anh Tu
committed
fix(setup): app - viem type
1 parent 6ece2e4 commit c85c089

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/providers/account-abstraction-provider/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@web3auth/ethereum-provider": "^9.5.2",
2929
"ethers": "^6.13.4",
3030
"permissionless": "^0.2.23",
31-
"viem": "^2.21.55"
31+
"viem": "^2.22.5"
3232
},
3333
"peerDependencies": {
3434
"@babel/runtime": "7.x"

packages/providers/account-abstraction-provider/src/providers/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export function getProviderHandlers({
4747
processTransaction: async (txParams: TransactionParams & { gas?: string }): Promise<string> => {
4848
if (txParams.input && !txParams.data) txParams.data = addHexPrefix(txParams.input);
4949
const { to, value, data } = txParams;
50+
// @ts-expect-error viem types are too deep
5051
const userOperationParams: SendUserOperationParameters = {
5152
account: smartAccount,
5253
calls: [
@@ -59,7 +60,7 @@ export function getProviderHandlers({
5960
],
6061
// should not use maxFeePerGas/maxPriorityFeePerGas from transaction params since that's fee for transaction not user operation and let bundler handle it instead
6162
};
62-
// @ts-expect-error viem types are too deep
63+
6364
const userOpHash = await bundlerClient.sendUserOperation(userOperationParams);
6465

6566
const txReceipt = await bundlerClient.waitForUserOperationReceipt({ hash: userOpHash });

0 commit comments

Comments
 (0)