Skip to content
Cosmopediaby Unity Nodes
DiscussionsTendermintCosmo SDK Polling appForum ↗

Cosmo SDK Polling app

Tendermint2 posts612 views1 likesLast activity Jan 2021
VI
victory015OP
Jan 2021

As described in the tutorial:
https://tutorials.cosmos.network/voter/#x-voter-keeper-vote-go

Do i have to create a new file for the file mentioned in the tutorial?
x/voter/keeper/vote.go

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.

VI
victory015
Jan 2021 1

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

← Back to Discussions