Skip to content

Commit 5fdf470

Browse files
committed
reverting changes. will move it to a breaking updates PR
1 parent 7e61d87 commit 5fdf470

File tree

1 file changed

+3
-3
lines changed
  • src/server/routes/contract/extensions/erc20/read

1 file changed

+3
-3
lines changed

src/server/routes/contract/extensions/erc20/read/balanceOf.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { getChainIdFromChain } from "../../../../../utils/chain";
1313
// INPUTS
1414
const requestSchema = erc20ContractParamSchema;
1515
const querystringSchema = Type.Object({
16-
walletAddress: Type.String({
16+
wallet_address: Type.String({
1717
description: "Address of the wallet to check token balance",
1818
examples: ["0x1946267d81Fb8aDeeEa28e6B98bcD446c8248473"],
1919
}),
@@ -60,13 +60,13 @@ export async function erc20BalanceOf(fastify: FastifyInstance) {
6060
},
6161
handler: async (request, reply) => {
6262
const { chain, contractAddress } = request.params;
63-
const { walletAddress } = request.query;
63+
const { wallet_address } = request.query;
6464
const chainId = await getChainIdFromChain(chain);
6565
const contract = await getContract({
6666
chainId,
6767
contractAddress,
6868
});
69-
const returnData = await contract.erc20.balanceOf(walletAddress);
69+
const returnData = await contract.erc20.balanceOf(wallet_address);
7070
reply.status(StatusCodes.OK).send({
7171
result: {
7272
name: returnData.name,

0 commit comments

Comments
 (0)