Hi guys! I need your help!
I’m following the docs to build a simple governance application (https://cosmos.network/docs/sdk/sdk-by-examples/simple-governance/simple-gov-module.html)
I know that the docs are a little out of date and Cosmos SDK API has changed a little, but I almost made it work by looking at a more fresh example at https://github.com/cosmos/sdk-application-tutorial.
When I try to cast a vote I get an error: “Delegator does not contain this delegation”. The error occurs at the following line:
Could anybody explain to me what’s going on here and how to fix it, please?
Prove me wrong. If I get it correctly I need to somehow let my application know about a validator in order to make it work. If so, how can I do it on my local machine?