Cosmo SDK Polling app

As described in the tutorial:

Do i have to create a new file for the file mentioned in the tutorial?

Why it only contains one line?
key := []byte(types.VotePrefix + vote.PollID + “-” + string(vote.Creator))

After i add the file vote.go , the Polling app cannot be built.

Sorry, have to run the command to create vote.go
starport type vote pollID value

1 Like