Commit 312e236 1 parent 07794d2 commit 312e236 Copy full SHA for 312e236
File tree 2 files changed +8
-4
lines changed
src/methods/vault/requests
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,11 @@ const getBlocklist = async (input: GetBlocklistInput): Promise<GetBlocklistOutpu
44
44
}
45
45
}
46
46
47
+ const vault = vaultAddress . toLowerCase ( )
48
+
47
49
const where = search
48
- ? { vault : vaultAddress , address_contains : search } as BlocklistAccountsQueryVariables [ 'where' ]
49
- : { vault : vaultAddress } as BlocklistAccountsQueryVariables [ 'where' ]
50
+ ? { vault, address_contains : search . toLowerCase ( ) } as BlocklistAccountsQueryVariables [ 'where' ]
51
+ : { vault } as BlocklistAccountsQueryVariables [ 'where' ]
50
52
51
53
return graphql . subgraph . vault . fetchBlocklistAccountsQuery < ModifiedBlocklist > ( {
52
54
url : apiUrls . getSubgraphqlUrl ( options ) ,
Original file line number Diff line number Diff line change @@ -44,9 +44,11 @@ const getWhitelist = async (input: GetWhitelistInput): Promise<GetWhitelistOutpu
44
44
}
45
45
}
46
46
47
+ const vault = vaultAddress . toLowerCase ( )
48
+
47
49
const where = search
48
- ? { vault : vaultAddress , address_contains : search } as WhitelistAccountsQueryVariables [ 'where' ]
49
- : { vault : vaultAddress } as WhitelistAccountsQueryVariables [ 'where' ]
50
+ ? { vault, address_contains : search . toLowerCase ( ) } as WhitelistAccountsQueryVariables [ 'where' ]
51
+ : { vault } as WhitelistAccountsQueryVariables [ 'where' ]
50
52
51
53
return graphql . subgraph . vault . fetchWhitelistAccountsQuery < ModifiedWhitelist > ( {
52
54
url : apiUrls . getSubgraphqlUrl ( options ) ,
You can’t perform that action at this time.
0 commit comments