Skip to content

Commit

Permalink
test: tx too large with moby_dick_hex.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Oct 21, 2022
1 parent 7983b5f commit 7c3fde6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions x/payment/client/testutil/integration_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package testutil

import (
_ "embed"
"encoding/hex"
"fmt"
"strconv"
Expand Down Expand Up @@ -53,14 +54,17 @@ func (s *IntegrationTestSuite) TearDownSuite() {
s.network.Cleanup()
}

//go:embed moby_dick_hex.txt
var hexMsg string

// fails due to Cosmos SDK code 21: tx too large
// https://github.com/cosmos/cosmos-sdk/blob/1dae922fe0c01ce87f129b247166323ee080521c/types/errors/errors.go#L101
func (s *IntegrationTestSuite) TestSubmitWirePayForData() {
require := s.Require()
val := s.network.Validators[0]

// some hex namespace
hexNS := "0102030405060708"
// some hex message
hexMsg := "0204033704032c0b162109000908094d425837422c2116"

testCases := []struct {
name string
Expand Down
1 change: 1 addition & 0 deletions x/payment/client/testutil/moby_dick_hex.txt

Large diffs are not rendered by default.

0 comments on commit 7c3fde6

Please sign in to comment.