Do not sanitize memo

This commit is contained in:
Aleksandr Bezobchuk 2020-03-25 15:15:43 -04:00
parent e950dd34aa
commit 6a33b424a6
No known key found for this signature in database
GPG Key ID: 7DAC30FBD99879B0
2 changed files with 1 additions and 5 deletions

View File

@ -2,7 +2,6 @@ package tx
import (
"io"
"strings"
"github.com/spf13/viper"
@ -140,7 +139,7 @@ func (f Factory) WithSequence(sequence uint64) Factory {
// WithMemo returns a copy of the Factory with an updated memo.
func (f Factory) WithMemo(memo string) Factory {
f.memo = strings.TrimSpace(memo)
f.memo = memo
return f
}

View File

@ -8,14 +8,11 @@ import (
"net/http"
"os"
"github.com/spf13/viper"
"github.com/cosmos/cosmos-sdk/client/context"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/input"
clientkeys "github.com/cosmos/cosmos-sdk/client/keys"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/rest"
"github.com/cosmos/cosmos-sdk/x/auth"