Skip to content

Commit

Permalink
update decoder fn
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanrikulu committed Apr 23, 2024
1 parent b698404 commit b22c981
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"@chainlink/ccip-read-server": "^0.2.1",
"@ensdomains/ccip-read-cf-worker": "^0.0.3",
"@ensdomains/dnsprovejs": "^0.4.1",
"@ensdomains/server-analytics": "^0.0.1-alpha.2",
"@ensdomains/server-analytics": "^0.0.1-alpha.3",
"dotenv": "^16.0.3",
"ethers": "^5.7.2",
"node-fetch": "2.6.1"
Expand Down
4 changes: 2 additions & 2 deletions src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const routeHandler = (env: ENV, trackEvent?: Function) => {
return app;
};

const dataDecoder = async (data: string) => {
const dataDecoder = async (_:CFWRequest, data: string) => {
const decodedData = ethers.utils.defaultAbiCoder.decode(
abi_RRSetWithSignature,
data
Expand All @@ -49,7 +49,7 @@ const dataDecoder = async (data: string) => {
rrset: item[0],
sig: item[1],
}));
return extractENSRecord(structuredData);
return { result: extractENSRecord(structuredData) };
};

module.exports = {
Expand Down

0 comments on commit b22c981

Please sign in to comment.