Skip to content

Commit

Permalink
fix: decoding post request returned data in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashk767 committed Jul 18, 2024
1 parent 5d8bebb commit 0e5b619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/utils/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const weiToEther = (weiValue) => {

const decodeUniswapV2Data = (data, returnType) => {
// Check if data can be converted into a number
if (!isNaN(Number(data))) {
if (typeof data === "number") {
return Number(data);
}

Expand Down

0 comments on commit 0e5b619

Please sign in to comment.