cosmos-sdk/codec
Robert Zaremba 3a9e696bbf
fix: Signature only flag bug on tx sign command 7632 (#8106)
* fix: Signature only flag bug on tx sign command 7632

* Update client/context.go

Co-authored-by: Cory <cjlevinson@gmail.com>

* Update client/context.go

Co-authored-by: Cory <cjlevinson@gmail.com>

* use named return value and closure (#8111)

This is to correctly handle deferred Close()
calls on writable files.

* set the right 'append' logic for signing transactions

* cleanup

* update tx.Sign interface by adding overwrite option

* Update Changelog

* sign command cleanup

* implementation and changelog update

* fix SignTx and tx.Sign calls

* fix: sign didn't write to a file

* update flags description

* Add tx.Sign tests

* fix grpc/server_test.go

* Update client/tx/tx.go

Co-authored-by: Cory <cjlevinson@gmail.com>

* changelog update

* Add test to verify matching signatures

* cli_test: add integration tests for sign CMD

* add output-file flag test

* add flagAmino test

* Update x/auth/client/cli/tx_sign.go

Co-authored-by: Alessio Treglia <alessio@tendermint.com>

* Update x/auth/client/cli/tx_sign.go

* update amino serialization test

* TestSign: adding unit test for signing with different modes

* Add test with Multi Signers into Robert's TxSign PR (#8142)

* Add test with Multi Signers

* remove true false

* Use SIGN_MODE_DIRECT

* Fix litn

* Use correct pubkeys

* Correct accNum and seq

* Use amino

* cleanups

* client.Sign: raise error when signing tx with multiple signers in Direct

+ added more unit tests

* add more tests

* Update client/tx/tx_test.go

Co-authored-by: Cory <cjlevinson@gmail.com>

* fix TestGetBroadcastCommand_WithoutOfflineFlag

* Any.UnsafeSetCachedValue

* fix note packed messages in tx builder

* reorder unit tests

* Changelog update

* cleaning / linting

* cli_tes: copy validator object instead of modifying it's shared codec

* x/auth cli_test: remove custom codec creation in tests

* Update CHANGELOG.md

* updates to CHANGELOG.md

* remove unused method

* add new instance of transaction builder for TestSign

Co-authored-by: Cory <cjlevinson@gmail.com>
Co-authored-by: SaReN <sahithnarahari@gmail.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Amaury <amaury.martiny@protonmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-12-14 21:44:15 +00:00
..
legacy Fix CryptoCdc inconsistent (#7987) 2020-12-02 14:50:50 +01:00
types fix: Signature only flag bug on tx sign command 7632 (#8106) 2020-12-14 21:44:15 +00:00
unknownproto unknownproto: check result from protowire.ConsumeFieldValue and return an error (#7770) 2020-11-09 17:58:13 +00:00
amino.go Use any as validator pubkey (#7597) 2020-10-23 12:07:52 +00:00
amino_codec.go Move and update codec.MarshalAny functions to codec.Marshaler interface (#8080) 2020-12-08 09:27:08 +00:00
amino_codec_test.go Add UnpackInterfaces to BroadcastReq (#8118) 2020-12-09 11:05:12 +00:00
any_test.go Move and update codec.MarshalAny functions to codec.Marshaler interface (#8080) 2020-12-08 09:27:08 +00:00
codec.go Move and update codec.MarshalAny functions to codec.Marshaler interface (#8080) 2020-12-08 09:27:08 +00:00
codec_common_test.go Move and update codec.MarshalAny functions to codec.Marshaler interface (#8080) 2020-12-08 09:27:08 +00:00
json.go Add ADR 031 BaseApp and codec infrastructure (#7519) 2020-10-15 13:07:59 +00:00
proto_codec.go Move and update codec.MarshalAny functions to codec.Marshaler interface (#8080) 2020-12-08 09:27:08 +00:00
proto_codec_test.go Move and update codec.MarshalAny functions to codec.Marshaler interface (#8080) 2020-12-08 09:27:08 +00:00
yaml.go docs: Update the code.MarshalYAML docs (#7496) 2020-10-09 14:08:02 +00:00
yaml_test.go Migrate BaseAccount PubKey to use Any (#7268) 2020-09-25 08:41:16 +00:00