Skip to content

Commit

Permalink
feat(whale-api): whitelist getGovProposal, listGovProposals and listG…
Browse files Browse the repository at this point in the history
…ovProposalVotes (#1922)

<!--  Thanks for sending a pull request! -->

#### What this PR does / why we need it:
Whitelist getGovProposal, listGovProposals and listGovProposalVotes RPC.
#### Which issue(s) does this PR fixes?:
<!--
(Optional) Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes #

#### Additional comments?:
  • Loading branch information
fullstackninja864 authored Dec 14, 2022
1 parent 0013508 commit 4efa3b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/whale-api/src/module.api/rpc.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ export class MethodWhitelist implements PipeTransform {
'getfutureswapblock',
'getpendingfutureswaps',
'sendrawtransaction',
'getrawtransaction'
'getrawtransaction',
'getgovproposal',
'listgovproposals',
'listgovproposalvotes'
]

transform (value: string, metadata: ArgumentMetadata): string {
Expand Down

0 comments on commit 4efa3b6

Please sign in to comment.