move sendtx into coinstore

This commit is contained in:
Ethan Buchman
2018-01-09 19:11:00 -08:00
committed by Jae Kwon
parent e908cfbb6f
commit d3de10e22b
6 changed files with 39 additions and 46 deletions
+3 -3
View File
@@ -14,7 +14,7 @@ import (
"github.com/cosmos/cosmos-sdk/types"
acm "github.com/cosmos/cosmos-sdk/x/account"
"github.com/cosmos/cosmos-sdk/x/auth"
"github.com/cosmos/cosmos-sdk/x/sendtx"
"github.com/cosmos/cosmos-sdk/x/coinstore"
)
func main() {
@@ -42,7 +42,7 @@ func main() {
// logger.Decorator(),
auth.DecoratorFn(acm.NewAccountStore),
).WithHandler(
sendtx.TransferHandlerFn(acm.NewAccountStore),
coinstore.TransferHandlerFn(acm.NewAccountStore),
)
// TODO: load genesis
@@ -76,7 +76,7 @@ func main() {
}
func txParser(txBytes []byte) (types.Tx, error) {
var tx sendtx.SendTx
var tx coinstore.SendTx
err := json.Unmarshal(txBytes, &tx)
return tx, err
}