Skip to content

Commit

Permalink
refactor: Change return type of getUpgradeKernelCall to UserOperation…
Browse files Browse the repository at this point in the history
…Call
  • Loading branch information
SahilVasava committed Dec 24, 2024
1 parent ce9c082 commit 01ad5a2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @zerodev/sdk

## 5.4.9

### Patch Changes

- Change return type of getUpgradeKernelCall to UserOperationCall

## 5.4.8

### Patch Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { Hex } from "viem"
import { encodeFunctionData } from "viem"
import type { SmartAccount } from "viem/account-abstraction"
import type { SmartAccount, UserOperationCall } from "viem/account-abstraction"
import { KernelVersionToAddressesMap } from "../../../../constants.js"
import type { KERNEL_VERSION_TYPE } from "../../../../types/kernel.js"
import { validateKernelVersionWithEntryPoint } from "../../../../utils.js"
Expand All @@ -9,7 +8,7 @@ import { KernelV3AccountAbi } from "../../abi/kernel_v_3_0_0/KernelAccountAbi.js
export function getUpgradeKernelCall(
account: SmartAccount,
kernelVersion: KERNEL_VERSION_TYPE
): { to: string; data: Hex; value: bigint } {
): UserOperationCall {
validateKernelVersionWithEntryPoint(
account.entryPoint.version,
kernelVersion
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zerodev/sdk",
"version": "5.4.8",
"version": "5.4.9",
"author": "ZeroDev",
"main": "./_cjs/index.js",
"module": "./_esm/index.js",
Expand Down

0 comments on commit 01ad5a2

Please sign in to comment.