File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/server/routes/contract/extensions/erc20/read Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { getChainIdFromChain } from "../../../../../utils/chain";
13
13
// INPUTS
14
14
const requestSchema = erc20ContractParamSchema ;
15
15
const querystringSchema = Type . Object ( {
16
- walletAddress : Type . String ( {
16
+ wallet_address : Type . String ( {
17
17
description : "Address of the wallet to check token balance" ,
18
18
examples : [ "0x1946267d81Fb8aDeeEa28e6B98bcD446c8248473" ] ,
19
19
} ) ,
@@ -60,13 +60,13 @@ export async function erc20BalanceOf(fastify: FastifyInstance) {
60
60
} ,
61
61
handler : async ( request , reply ) => {
62
62
const { chain, contractAddress } = request . params ;
63
- const { walletAddress } = request . query ;
63
+ const { wallet_address } = request . query ;
64
64
const chainId = await getChainIdFromChain ( chain ) ;
65
65
const contract = await getContract ( {
66
66
chainId,
67
67
contractAddress,
68
68
} ) ;
69
- const returnData = await contract . erc20 . balanceOf ( walletAddress ) ;
69
+ const returnData = await contract . erc20 . balanceOf ( wallet_address ) ;
70
70
reply . status ( StatusCodes . OK ) . send ( {
71
71
result : {
72
72
name : returnData . name ,
You can’t perform that action at this time.
0 commit comments