Fix message representation for signing (#658)

* Introduce RawContractMessage type

* Add json signbytes test for proposals

* No assumptions on MsgIBCSend.data content

* Smart query uses RawContractMessage

* Revert method signature change to be consistent

* Review comment

* Update after discussions
This commit is contained in:
Alexander Peters
2021-10-25 15:23:19 +02:00
committed by GitHub
parent 465c085e15
commit dfba1395d9
26 changed files with 438 additions and 323 deletions

View File

@@ -397,7 +397,7 @@ type startTransfer struct {
Timeout uint64
}
func (g startTransfer) GetBytes() json.RawMessage {
func (g startTransfer) GetBytes() types.RawContractMessage {
b, err := json.Marshal(g)
if err != nil {
panic(err)