Cleanup code, remove plugin type byte

This commit is contained in:
Jae Kwon
2017-01-13 16:10:22 -08:00
parent 0f90f51262
commit 8a6e4095b7
6 changed files with 13 additions and 28 deletions
+4 -4
View File
@@ -12,6 +12,8 @@ import (
eyescli "github.com/tendermint/merkleeyes/client"
)
const PluginNameVote = "vote"
func TestVote(t *testing.T) {
//base initialization
eyesCli := eyescli.NewLocalClient()
@@ -30,10 +32,8 @@ func TestVote(t *testing.T) {
//vote initialization
votePlugin := NewVoteInstance("humanRights")
var typeByte byte = app.PluginTypeByteVote
bcApp.RegisterPlugin(
typeByte,
app.PluginNameVote,
PluginNameVote,
votePlugin,
)
@@ -52,7 +52,7 @@ func TestVote(t *testing.T) {
tx := &types.AppTx{
Fee: fees,
Gas: 0,
Type: typeByte,
Name: PluginNameVote,
Input: cmn.MakeInput(test1Acc.PubKey, types.Coins{{"", sendCoins}}, seqNum),
Data: wire.BinaryBytes(struct{ Tx }{Tx{voteYes: true}}), //a vote for human rights
}