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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user