Bug report: ParseError when use TxRestClient.GetTxsEvent method
Prerequisites
- [X] I am running the latest CosmPy version.
- [X] I checked the documentation and found no answer to my problem.
- [X] I checked the existing issues to make sure my problem has not already been reported.
- [X] I have read the code of conduct before creating this issue.
Expected Behavior
Hello Team, I'm using cosmpy 0.9.2 version and sei chain (atlantic-2 testnet) to code my idea,
I'm use contract_address to get txs event, it work fine, like this:
Current Behavior
But when I'm using message.sender='wallet address' to fetch txs, it can't parse and report bug: Can not find message descriptor by type_uri: /cosmos.bank.v1beta1.MsgSend
To Reproduce
You can see the test wallet all txs at https://sei-testnet-api.polkachu.com/cosmos/tx/v1beta1/txs?events=message.sender=%27sei1304xws6x0t5wqzjmwq3fsffemtv4ayezvdvy36%27,
the MsgSend tx can't parse in cosmpy package
Context
OS: Ubuntu 2204 LTS Python: 3.12.2 cosmpy: 0.9.2
Failure Logs
# it's all my code
from google.protobuf.json_format import MessageToDict
from cosmpy.tx.rest_client import RestClient, TxRestClient
from cosmpy.protos.cosmos.tx.v1beta1.service_pb2 import (
GetTxsEventRequest,
)
rc = RestClient("http://sei-testnet-api.polkachu.com")
tr = TxRestClient(rc)
param1 = GetTxsEventRequest(
events=[
"execute._contract_address='sei1zpm70e2vtsskynmqfw4um3erdxw50g7tz99frmuv2v2t862exdfqxsrd89'"
]
)
# it's work fine
print(MessageToDict(param1))
resp = tr.GetTxsEvent(param1)
print(resp)
param2 = GetTxsEventRequest(
events=[
"message.sender='sei1304xws6x0t5wqzjmwq3fsffemtv4ayezvdvy36'"
]
)
# it's report can't parse MsgSend
print(MessageToDict(param2))
resp = tr.GetTxsEvent(param2)
print(resp)
Hey @SteveMBao
Thank you for reporting this issue. Our team will investigate promptly.