sei-protocol / sei-js

SeiJS is a monorepo that contains multiple NPM libraries for writing applications that interact with the Sei network.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

staking module query delegation info error

smithmonnnnnnn opened this issue · comments

sei-js/packages/proto/src/codegen/cosmos/staking/v1beta1/query.lcd.ts
The URL in the method delegation is missing a character "/"
now is blow:
async delegation(params: QueryDelegationRequest): Promise {
const endpoint = cosmos/staking/v1beta1/validators/${params.validatorAddr}delegations/${params.delegatorAddr};
return await this.req.get(endpoint);
}
maybe it should be :
async delegation(params: QueryDelegationRequest): Promise {
const endpoint = cosmos/staking/v1beta1/validators/${params.validatorAddr}/delegations/${params.delegatorAddr};
return await this.req.get(endpoint);
}

commented

Fixed in PR: #50

commented

@smithmonnnnnnn This has been fixed in @sei-js/proto@1.3.0 and onwards.