*Use context var, not hns string

This commit is contained in:
Derrick Hammer 2022-08-05 00:11:00 -04:00
parent 03062d3bfc
commit 05c4fc40d9
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ export function rpcError(message: string): Promise<RpcError> {
export function validateChain(chain: string, handler: any) {
return async (args: any, context: RpcContext) => {
if (!context?.chain || "hns" !== context?.chain) {
if (!context?.chain || chain !== context?.chain) {
return rpcError(ERR_INVALID_CHAIN);
}