OSDN Git Service

clean
authorHAOYUatHZ <haoyu@protonmail.com>
Sun, 16 Jun 2019 02:44:13 +0000 (10:44 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Sun, 16 Jun 2019 02:44:13 +0000 (10:44 +0800)
federation/warder.go

index 6d2aaac..7d7d551 100644 (file)
@@ -178,10 +178,8 @@ func (w *warder) submitTx(destTx interface{}) (string, error) {
        switch tx := destTx.(type) {
        case *btmTypes.Tx:
                return w.mainchainNode.SubmitTx(tx)
-
        case *vaporTypes.Tx:
                return w.sidechainNode.SubmitTx(tx)
-
        default:
                return "", errors.New("unknown destTx type")
        }