New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@zerodev/sdk

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zerodev/sdk - npm Package Compare versions

Comparing version

to
5.4.26

@@ -233,4 +233,2 @@ "use strict";

const isEip7702Authorized = code?.length && code.length > 0 && code.startsWith("0xef");
console.log("Code before:", code);
console.log("Is Eip7702 Authorized:", isEip7702Authorized);
if (!isEip7702Authorized) {

@@ -245,4 +243,3 @@ const sponsorAccount = eip7702SponsorAccount

});
console.log("Authorizing eip7702 account...");
const txHash = await (0, actions_1.sendTransaction)(sponsorWalletClient, {
await (0, actions_1.sendTransaction)(sponsorWalletClient, {
to: accountAddress,

@@ -253,3 +250,2 @@ data: "0x",

});
console.log(`Authorized eip7702 account: ${client.chain?.blockExplorers?.default.url}/tx/${txHash}`);
code = await (0, actions_1.getCode)(client, { address: accountAddress });

@@ -259,3 +255,2 @@ while (code?.length === undefined || code.length === 0) {

}
console.log("Code after:", code);
}

@@ -262,0 +257,0 @@ }

@@ -262,4 +262,2 @@ import { http, concatHex, createNonceManager, createWalletClient, encodeFunctionData, getTypesForEIP712Domain, hashMessage, hashTypedData, isAddressEqual, toHex, validateTypedData, zeroAddress } from "viem";

const isEip7702Authorized = code?.length && code.length > 0 && code.startsWith("0xef");
console.log("Code before:", code);
console.log("Is Eip7702 Authorized:", isEip7702Authorized);
if (!isEip7702Authorized) {

@@ -276,4 +274,3 @@ const sponsorAccount = eip7702SponsorAccount

});
console.log("Authorizing eip7702 account...");
const txHash = await sendTransaction(sponsorWalletClient, {
await sendTransaction(sponsorWalletClient, {
to: accountAddress,

@@ -284,3 +281,2 @@ data: "0x",

});
console.log(`Authorized eip7702 account: ${client.chain?.blockExplorers?.default.url}/tx/${txHash}`);
code = await getCode(client, { address: accountAddress });

@@ -290,3 +286,2 @@ while (code?.length === undefined || code.length === 0) {

}
console.log("Code after:", code);
}

@@ -293,0 +288,0 @@ }

@@ -495,4 +495,2 @@ import {

code?.length && code.length > 0 && code.startsWith("0xef")
console.log("Code before:", code)
console.log("Is Eip7702 Authorized:", isEip7702Authorized)
if (!isEip7702Authorized) {

@@ -510,4 +508,3 @@ const sponsorAccount = eip7702SponsorAccount

})
console.log("Authorizing eip7702 account...")
const txHash = await sendTransaction(sponsorWalletClient, {
await sendTransaction(sponsorWalletClient, {
to: accountAddress,

@@ -518,5 +515,2 @@ data: "0x",

})
console.log(
`Authorized eip7702 account: ${client.chain?.blockExplorers?.default.url}/tx/${txHash}`
)
code = await getCode(client, { address: accountAddress })

@@ -526,3 +520,2 @@ while (code?.length === undefined || code.length === 0) {

}
console.log("Code after:", code)
}

@@ -529,0 +522,0 @@ }

{
"name": "@zerodev/sdk",
"version": "5.4.25",
"version": "5.4.26",
"author": "ZeroDev",

@@ -5,0 +5,0 @@ "main": "./_cjs/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet