Skip to content

Commit

Permalink
fix(universal-router-sdk): Calldata fix (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
dianakocsis authored Oct 3, 2024
1 parent 0a42b59 commit b58449e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion sdks/universal-router-sdk/src/utils/routerCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,12 @@ export type RouterCommand = {
}

export function createCommand(type: CommandType, parameters: any[]): RouterCommand {
if (type === CommandType.V4_SWAP) {
if (
type === CommandType.V4_SWAP ||
type === CommandType.V3_POSITION_MANAGER_CALL ||
type === CommandType.V3_POSITION_MANAGER_PERMIT ||
type === CommandType.V4_POSITION_CALL
) {
return { type, encodedInput: parameters[0] }
}
const encodedInput = defaultAbiCoder.encode(
Expand Down
Loading

0 comments on commit b58449e

Please sign in to comment.