cleanup
This commit is contained in:
parent
4883476166
commit
1df0c9fe5b
|
@ -46,9 +46,9 @@ type Stack struct {
|
|||
|
||||
var _ basecoin.Handler = &Stack{}
|
||||
|
||||
// NewStack prepares a middleware stack, you must `.Use()` a Handler
|
||||
// New prepares a middleware stack, you must `.Use()` a Handler
|
||||
// before you can execute it.
|
||||
func NewStack(middlewares ...Middleware) *Stack {
|
||||
func New(middlewares ...Middleware) *Stack {
|
||||
return &Stack{
|
||||
middles: middlewares,
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ func TestRecovery(t *testing.T) {
|
|||
i := strconv.Itoa(idx)
|
||||
fail := PanicHandler{Msg: tc.msg, Err: tc.err}
|
||||
rec := Recovery{}
|
||||
app := NewStack(rec).Use(fail)
|
||||
app := New(rec).Use(fail)
|
||||
|
||||
// make sure check returns error, not a panic crash
|
||||
_, err := app.CheckTx(ctx, store, tx)
|
||||
|
|
|
@ -20,7 +20,10 @@ 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 := []byte{0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef}
|
||||
addr := basecoin.Actor{
|
||||
App: "cash",
|
||||
Address: []byte{0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef},
|
||||
}
|
||||
|
||||
cases := []struct {
|
||||
Tx basecoin.Tx
|
||||
|
|
Loading…
Reference in New Issue