@gearbox-protocol/sdk 14.4.1 → 14.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,8 +28,8 @@ __export(create2_exports, {
|
|
|
28
28
|
handleSalt: () => handleSalt
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(create2_exports);
|
|
31
|
+
var import_abitype = require("abitype");
|
|
31
32
|
var import_viem = require("viem");
|
|
32
|
-
var import_utils = require("viem/utils");
|
|
33
33
|
const PUBLIC_CREATE2_FACTORY = "0x4e59b44847b379578588920ca78fbf26c0b4956c";
|
|
34
34
|
function handleSalt(salt) {
|
|
35
35
|
if (salt.slice(0, 2) !== "0x" || salt.length !== 66) {
|
|
@@ -63,7 +63,7 @@ function createCreate2DeployRawTx(bytecode, salt) {
|
|
|
63
63
|
type: "fallback"
|
|
64
64
|
}
|
|
65
65
|
];
|
|
66
|
-
const signature = (0,
|
|
66
|
+
const signature = (0, import_abitype.formatAbiItem)(deterministicDeployerAbi[0]);
|
|
67
67
|
const contractMethod = {
|
|
68
68
|
name: "fallback",
|
|
69
69
|
inputs: [],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { formatAbiItem } from "abitype";
|
|
1
2
|
import {
|
|
2
3
|
getCreate2Address,
|
|
3
4
|
stringToHex
|
|
4
5
|
} from "viem";
|
|
5
|
-
import { formatAbiItem } from "viem/utils";
|
|
6
6
|
const PUBLIC_CREATE2_FACTORY = "0x4e59b44847b379578588920ca78fbf26c0b4956c";
|
|
7
7
|
function handleSalt(salt) {
|
|
8
8
|
if (salt.slice(0, 2) !== "0x" || salt.length !== 66) {
|