-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
decoding RPC for Pools Request doesn't decode Pool automatically #5
Comments
editing the code this also works by editing the First import var _balancer = require("../pool-models/balancer/balancerPool"); update the decode method decode: function decode(input, length) {
var reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
var end = length === undefined ? reader.len : reader.pos + length;
var message = createBaseQueryPoolsResponse();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
// message.pools.push(_any.Any.decode(reader, reader.uint32()));
message.pools.push(_balancer.Pool.decode(reader, reader.uint32()))
break;
case 2:
message.pagination = _pagination.PageResponse.decode(reader, reader.uint32());
break;
default:
reader.skipType(tag & 7);
break;
}
}
return message;
}, |
Looks like decoding works automatically now. This is what the response looks like.
Any chance you can update https://github.com/cosmology-tech/cosmology/tree/main/packages/core @pyramation ? |
not sure if this is intended, but decoding RPC for Pools Request doesn't decode Pool automatically.
The text was updated successfully, but these errors were encountered: