You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am running an appchain using the latest sdk version (0.50.8) and I am trying to run test but I am getting error in my code which I have posted below:
Error is originating from this code(here cctptypes is a dependency that i am importing in my repo):
The issue you're encountering, "unable to resolve type URL /cctp.MsgAddRemoteTokenMessenger", is related to the fact that the protobuf message type MsgAddRemoteTokenMessenger is not properly registered in the interface registry.
The error indicates that the MsgAddRemoteTokenMessenger type URL /cctp.MsgAddRemoteTokenMessenger hasn't been registered properly in the interface registry. This typically happens when the RegisterInterfaces method for the module is missing or incomplete, leading to the message types not being recognized when processing transactions.
You can see the main method here:
.
If you want reproduce it, you can do it easily comment this line and execute the test.
You need to ensure that your cctp module registers all message types with the protobuf interface registry. And here has an explanation of this.
Let me know if this helped you or you need anything else!
Hi, I am running an appchain using the latest sdk version (0.50.8) and I am trying to run test but I am getting error in my code which I have posted below:
Error is originating from this code(here cctptypes is a dependency that i am importing in my repo):
The error is:
"unable to resolve type URL /cctp.MsgAddRemoteTokenMessenger"
I have pasted the code snippet of its tx.pb.go file :
where could the issue be?
I have added these lines in my app.go file:
The text was updated successfully, but these errors were encountered: