Skip to content

Commit

Permalink
fix test when not using go.work
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Sep 20, 2023
1 parent 48e3d08 commit aff2272
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 60 deletions.
6 changes: 0 additions & 6 deletions x/tx/signing/aminojson/aminojson_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ func TestAminoJsonSignMode(t *testing.T) {
},
error: "got empty address in SIGN_MODE_LEGACY_AMINO_JSON handler: invalid request",
},
{
name: "nil tip",
malleate: func(opts testutil.HandlerArgumentOptions) testutil.HandlerArgumentOptions {
return opts
},
},
{
name: "nil fee",
malleate: func(opts testutil.HandlerArgumentOptions) testutil.HandlerArgumentOptions {
Expand Down
82 changes: 40 additions & 42 deletions x/tx/signing/aminojson/internal/aminojsonpb/aminojson.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions x/tx/signing/textual/internal/testdata/tx.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,6 @@
"gas_limit": 100000,
"payer": "cosmos1ejrf4cur2wy6kfurg9f2jppp2h3afe5h6pkh5t",
"granter": "cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs"
},
"tip": {
"amount": [
{ "amount": "20000", "denom": "uatom" },
{ "amount": "30000", "denom": "uosmo" }
],
"tipper": "cosmos1ejrf4cur2wy6kfurg9f2jppp2h3afe5h6pkh5t"
}
}
},
Expand Down Expand Up @@ -357,8 +350,6 @@
{ "title": "Fees", "content": "0.002 ATOM" },
{ "title": "Fee payer", "content": "cosmos1ejrf4cur2wy6kfurg9f2jppp2h3afe5h6pkh5t", "expert": true },
{ "title": "Fee granter", "content": "cosmos1ulav3hsenupswqfkw2y3sup5kgtqwnvqa8eyhs", "expert": true },
{ "title": "Tip", "content": "0.02 ATOM, 30'000 uosmo" },
{ "title": "Tipper", "content": "cosmos1ejrf4cur2wy6kfurg9f2jppp2h3afe5h6pkh5t" },
{ "title": "Gas limit", "content": "100'000", "expert": true },
{ "title": "Timeout height", "content": "20", "expert": true },
{ "title": "Other signer", "content": "1 SignerInfo", "expert": true },
Expand Down Expand Up @@ -394,7 +385,7 @@
{ "title": "Non critical extension options (1/1)", "content": "/cosmos.auth.v1beta1.Params", "indent": 1, "expert": true },
{ "title": "Max memo characters", "content": "10", "indent": 2, "expert": true },
{ "content": "End of Non critical extension options", "expert": true },
{ "title": "Hash of raw bytes", "content": "7ea02e8f0baed2db969e2d9ae4dc51fa31116259bd42897588072faf0ebb4d2e", "expert": true }
{ "title": "Hash of raw bytes", "content": "e7be7808de4985bd609811d2a32805cb233c168c7d247d61d37f4a6dd4cf3a2a", "expert": true }
]
}
]
2 changes: 0 additions & 2 deletions x/tx/signing/textual/internal/textualpb/textual.proto
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ message Envelope {
repeated cosmos.base.v1beta1.Coin fees = 8;
string fee_payer = 9;
string fee_granter = 10;
repeated cosmos.base.v1beta1.Coin tip = 11;
string tipper = 12;
uint64 gas_limit = 13;
uint64 timeout_height = 14;
repeated cosmos.tx.v1beta1.SignerInfo other_signer = 15;
Expand Down

0 comments on commit aff2272

Please sign in to comment.