diff --git a/.github/actions/install-dependencies/action.yml b/.github/actions/install-dependencies/action.yml index 6a1cabf8..b3e4c76f 100644 --- a/.github/actions/install-dependencies/action.yml +++ b/.github/actions/install-dependencies/action.yml @@ -7,7 +7,7 @@ runs: - name: Set up Bun uses: oven-sh/setup-bun@v1 with: - bun-version: 1.2.18 + bun-version: 1.3.8 - name: Set up foundry uses: foundry-rs/foundry-toolchain@v1 diff --git a/bun.lockb b/bun.lockb index 822dfc00..9a5ab6ab 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index cd3aa299..10c752e4 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,11 @@ # @zerodev/sdk +## 5.5.8 + +### Patch Changes + +- feat: use execute(uninstallValidation) calldata in uninstallPlugin instead of uninstallValidation() directly + ## 5.5.7 ### Patch Changes diff --git a/packages/core/actions/account-client/uninstallPlugin.ts b/packages/core/actions/account-client/uninstallPlugin.ts index 840766e8..9f22e1ca 100644 --- a/packages/core/actions/account-client/uninstallPlugin.ts +++ b/packages/core/actions/account-client/uninstallPlugin.ts @@ -12,6 +12,7 @@ import { parseAccount } from "viem/utils" import { KernelV3AccountAbi } from "../../accounts/kernel/abi/kernel_v_3_0_0/KernelAccountAbi.js" +import { encodeCallData } from "../../accounts/kernel/utils/account/ep0_7/encodeCallData.js" import { VALIDATOR_TYPE } from "../../constants.js" import { AccountNotFoundError } from "../../errors/index.js" import type { @@ -78,7 +79,7 @@ export async function uninstallPlugin< "sendUserOperation" )({ ...restArgs, - calls: [ + callData: await encodeCallData([ { to: account.address, data: encodeFunctionData({ @@ -88,7 +89,7 @@ export async function uninstallPlugin< }), value: 0n } - ], + ]), account } as SendUserOperationParameters) } diff --git a/packages/core/package.json b/packages/core/package.json index d6d437c6..ff894d31 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@zerodev/sdk", - "version": "5.5.7", + "version": "5.5.8", "author": "ZeroDev", "main": "./_cjs/index.js", "module": "./_esm/index.js",