Skip to content

Commit

Permalink
fix: zero address encoding (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrocheleau authored Dec 28, 2023
1 parent 6ec9783 commit 9f09c41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/itchy-masks-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@enzymefinance/sdk": patch
---

Fix zeroAddress encoding in ExternalPositionManager
4 changes: 2 additions & 2 deletions packages/sdk/src/_internal/ExternalPositionManager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Address, type Hex, decodeAbiParameters, encodeAbiParameters } from "viem";
import { type Address, type Hex, decodeAbiParameters, encodeAbiParameters, zeroAddress } from "viem";
import type { Types } from "../Utils.js";
import { type PopulatedExtensionCall, callExtension } from "./Extensions.js";

Expand Down Expand Up @@ -86,7 +86,7 @@ export function makeCreateAndUse<TArgs>(action: bigint, encoder?: (args: TArgs)
callArgs: callEncode({
actionId: action,
actionArgs: encoded,
externalPositionProxy: "0x",
externalPositionProxy: zeroAddress,
}),
});
};
Expand Down

0 comments on commit 9f09c41

Please sign in to comment.