hyperweb-io / hyperweb-io/telescope

Issues with amino signing StakeAuthorization, or maybe outdated protobuff?

Open
#658 4 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
TypeScript
Stars
154
Forks
53
PR merge metrics
No merged PRs in 30d

Description

Hi, I've tested telescope today which basically solved my issues with FeeGrant (I wasnt able to amino sign these types of transactions with default converters from cosmjs and now I can - thats great). First impression - great tool you've provided to the community. Thank you!

But after getting rid of cosmjs amino converters and using my newly generated ones via telescope I've fixed one issue but something what was working before, now stopped :/

StakeAuthorization transaction with MsgGrant returns me:

`Broadcasting transaction failed with code 4 (codespace: sdk). Log: signature verification failed; please verify account number (2815654), sequence (23) and chain-id (cosmoshub-4): unauthorized`

Which is very generic error telling that 'Hey dude, your converters are shit!'. But I am wondering why. From what I was able to compare, before my msg looked like this (and was working):

```
{
"type": "cosmos-sdk/MsgGrant",
"value": {
"grant": {
"authorization": {
"type": "cosmos-sdk/StakeAuthorization",
"value": {
"Validators": {
"type": "cosmos-sdk/StakeAuthorization/AllowList",
"value": {
"allow_list": {
"address": [
"xxx"
]
}
}
},
"authorization_type": 1,
"max_tokens": {
"amount": "28247",
"denom": "uatom"
}
}
},
"expiration": "2027-09-27T10:30:33Z"
},
"grantee": "xxx",
"granter": "xxx"
}
},
```

And now it looks like this (and doesnt work):

```
{
"type": "cosmos-sdk/MsgGrant",
"value": {
"grant": {
"authorization": {
"type": "cosmos-sdk/StakeAuthorization",
"value": {
"allow_list": {
"address": [
"xxx"
]
},
"authorization_type": 1,
"max_tokens": {
"amount": "28247",
"denom": "uatom"
}
}
},
"expiration": "2027-09-27T15:29:55Z"
},
"grantee": "xxx",
"granter": "xxx"
}
},
```

I followed classic telescope guide from ur README, all works great except this. Looking at proto files and comparing the ones which were installed by telescope and the ones from cosmos-sdk I can say they are different for example for proto `x/staking/proto/cosmos/staking/v1beta1/authz.proto`

May this difference be an issue? That protobuffs for telescope are outdated? Or maybe something else?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.