Fixed tests
This commit is contained in:
parent
37796002ae
commit
96348d2500
|
@ -10,7 +10,6 @@ import (
|
|||
"github.com/tendermint/go-wire/data"
|
||||
|
||||
"github.com/tendermint/basecoin"
|
||||
"github.com/tendermint/basecoin/types"
|
||||
)
|
||||
|
||||
func TestEncoding(t *testing.T) {
|
||||
|
@ -19,18 +18,13 @@ func TestEncoding(t *testing.T) {
|
|||
|
||||
raw := NewRaw([]byte{0x34, 0xa7}).Wrap()
|
||||
raw2 := NewRaw([]byte{0x73, 0x86, 0x22}).Wrap()
|
||||
coin := types.Coin{Denom: "atom", Amount: 123}
|
||||
addr := basecoin.Actor{
|
||||
App: "cash",
|
||||
Address: []byte{0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef},
|
||||
}
|
||||
|
||||
cases := []struct {
|
||||
Tx basecoin.Tx
|
||||
}{
|
||||
{raw},
|
||||
{NewFee(raw, coin, addr).Wrap()},
|
||||
{NewMultiTx(raw, raw2).Wrap()},
|
||||
{NewChain("foobar", raw).Wrap()},
|
||||
}
|
||||
|
||||
for idx, tc := range cases {
|
||||
|
|
Loading…
Reference in New Issue