Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sherifahmed990 committed Jan 6, 2025
1 parent 9eca1fe commit b182621
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,12 +484,14 @@ export async function getDepositInfo(
};

try {
const recoveryRequestResult = await sendEthCallRequest(
const depositInfoRequestResult = await sendEthCallRequest(
nodeRpcUrl, params, "latest");

const abiCoder = AbiCoder.defaultAbiCoder();
const decodedCalldata = abiCoder.decode(
["uint256", "bool", "uint112", "uint32", "uint48"], recoveryRequestResult);
["uint256", "bool", "uint112", "uint32", "uint48"],
depositInfoRequestResult
);


if (decodedCalldata.length === 5) {
Expand All @@ -506,7 +508,7 @@ export async function getDepositInfo(

throw new AbstractionKitError(
"BAD_DATA",
"getNonce returned ill formed data",
"getDepositInfo returned ill formed data",
{
cause: error,
},
Expand All @@ -515,7 +517,7 @@ export async function getDepositInfo(
} else {
throw new AbstractionKitError(
"BAD_DATA",
"getNonce returned ill formed data",
"getDepositInfo returned ill formed data",
{
context: JSON.stringify(decodedCalldata),
},
Expand All @@ -524,7 +526,7 @@ export async function getDepositInfo(
} catch (err) {
const error = ensureError(err);

throw new AbstractionKitError("BAD_DATA", "getNonce failed", {
throw new AbstractionKitError("BAD_DATA", "getDepositInfo failed", {
cause: error,
});
}
Expand Down

0 comments on commit b182621

Please sign in to comment.