diff --git a/proto/opinit/ophost/v1/tx.proto b/proto/opinit/ophost/v1/tx.proto index c2f10ea..c752883 100644 --- a/proto/opinit/ophost/v1/tx.proto +++ b/proto/opinit/ophost/v1/tx.proto @@ -165,29 +165,30 @@ message MsgInitiateTokenDepositResponse { // MsgFinalizeTokenWithdrawal is a message finalizing funds withdrawal from L2. message MsgFinalizeTokenWithdrawal { - option (cosmos.msg.v1.signer) = "receiver"; + option (cosmos.msg.v1.signer) = "sender"; option (amino.name) = "ophost/MsgFinalizeTokenWithdrawal"; // address of the sender of the transaction + string sender = 1 [(gogoproto.moretags) = "yaml:\"sender\"", (cosmos_proto.scalar) = "cosmos.AddressString"]; uint64 bridge_id = 2 [(gogoproto.moretags) = "yaml:\"bridge_id\""]; uint64 output_index = 3 [(gogoproto.moretags) = "yaml:\"output_index\""]; repeated bytes withdrawal_proofs = 4 [(gogoproto.nullable) = true, (amino.dont_omitempty) = false]; // withdraw tx data - string sender = 5 [(gogoproto.moretags) = "yaml:\"sender\""]; - string receiver = 1 [(gogoproto.moretags) = "yaml:\"receiver\"", (cosmos_proto.scalar) = "cosmos.AddressString"]; - uint64 sequence = 6 [(gogoproto.moretags) = "yaml:\"sequence\""]; - cosmos.base.v1beta1.Coin amount = 7 + string from = 5 [(gogoproto.moretags) = "yaml:\"from\""]; + string to = 6 [(gogoproto.moretags) = "yaml:\"to\"", (cosmos_proto.scalar) = "cosmos.AddressString"]; + uint64 sequence = 7 [(gogoproto.moretags) = "yaml:\"sequence\""]; + cosmos.base.v1beta1.Coin amount = 8 [(gogoproto.moretags) = "yaml:\"amount\"", (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // output root proofs // version of the output root - bytes version = 8 [(gogoproto.moretags) = "yaml:\"version\""]; - bytes storage_root = 9 [(gogoproto.moretags) = "yaml:\"storage_root\""]; - bytes last_block_hash = 10 [(gogoproto.moretags) = "yaml:\"last_block_hash\""]; + bytes version = 9 [(gogoproto.moretags) = "yaml:\"version\""]; + bytes storage_root = 10 [(gogoproto.moretags) = "yaml:\"storage_root\""]; + bytes last_block_hash = 11 [(gogoproto.moretags) = "yaml:\"last_block_hash\""]; } // MsgFinalizeTokenWithdrawalResponse returns a message handle result. diff --git a/x/ophost/client/cli/tx.go b/x/ophost/client/cli/tx.go index e58d6e8..8f3ff67 100644 --- a/x/ophost/client/cli/tx.go +++ b/x/ophost/client/cli/tx.go @@ -338,7 +338,8 @@ func NewFinalizeTokenWithdrawal(ac address.Codec) *cobra.Command { "bridge_id": "1", "output_index": "1", "sequence": "1", - "sender" : "bech32-address", + "from" : "l2-bech32-address", + "to" : "l1-bech32-address", "amount": {"amount": "10000000", "denom": "uinit"}, "withdrawal_proofs": [ "base64-encoded proof1", "proof2", ... ], "version": "base64-encoded version", @@ -358,40 +359,24 @@ func NewFinalizeTokenWithdrawal(ac address.Codec) *cobra.Command { if err != nil { return err } - var withdrawalInfo types.MsgFinalizeTokenWithdrawal - err = clientCtx.Codec.UnmarshalJSON(withdrawalBytes, &withdrawalInfo) + + var msg types.MsgFinalizeTokenWithdrawal + err = clientCtx.Codec.UnmarshalJSON(withdrawalBytes, &msg) if err != nil { return err } - // cannot validate sender address here because it is l2 address. - sender := withdrawalInfo.Sender - if len(sender) == 0 { - return fmt.Errorf("sender address is required") - } - - receiver, err := ac.BytesToString(clientCtx.GetFromAddress()) + sender, err := ac.BytesToString(clientCtx.GetFromAddress()) if err != nil { return err } - msg := types.NewMsgFinalizeTokenWithdrawal( - withdrawalInfo.BridgeId, - withdrawalInfo.OutputIndex, - withdrawalInfo.Sequence, - withdrawalInfo.WithdrawalProofs, - sender, - receiver, - withdrawalInfo.Amount, - withdrawalInfo.Version, - withdrawalInfo.StorageRoot, - withdrawalInfo.LastBlockHash, - ) + msg.Sender = sender if err = msg.Validate(ac); err != nil { return err } - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) + return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) }, } diff --git a/x/ophost/client/cli/tx_test.go b/x/ophost/client/cli/tx_test.go index 92aad7a..5b41172 100644 --- a/x/ophost/client/cli/tx_test.go +++ b/x/ophost/client/cli/tx_test.go @@ -521,7 +521,8 @@ func (s *CLITestSuite) TestNewFinalizeTokenWithdrawal() { "withdrawal_proofs": [ "q6T8JJm7AdbD4rgZ3BjanRHdE1x7aLZwp36pPrOOey4=" ], - "sender": "init1q6jhwnarkw2j5qqgx3qlu20k8nrdglft5ksr0g", + "from": "init1q6jhwnarkw2j5qqgx3qlu20k8nrdglft5ksr0g", + "to": "init1q6jhwnarkw2j5qqgx3qlu20k8nrdglft5ksr0g", "sequence": "5", "amount": {"amount": "100", "denom": "uinit"}, "version": "AQ==", diff --git a/x/ophost/keeper/msg_server.go b/x/ophost/keeper/msg_server.go index acf33a6..7d2c130 100644 --- a/x/ophost/keeper/msg_server.go +++ b/x/ophost/keeper/msg_server.go @@ -280,7 +280,7 @@ func (ms MsgServer) FinalizeTokenWithdrawal(ctx context.Context, req *types.MsgF return nil, err } - receiver, err := ms.authKeeper.AddressCodec().StringToBytes(req.Receiver) + receiver, err := ms.authKeeper.AddressCodec().StringToBytes(req.To) if err != nil { return nil, err } @@ -310,7 +310,7 @@ func (ms MsgServer) FinalizeTokenWithdrawal(ctx context.Context, req *types.MsgF // verify storage root can be generated from // withdrawal proofs and withdrawal tx data. - withdrawalHash := types.GenerateWithdrawalHash(bridgeId, l2Sequence, req.Sender, req.Receiver, denom, amount.Uint64()) + withdrawalHash := types.GenerateWithdrawalHash(bridgeId, l2Sequence, req.From, req.To, denom, amount.Uint64()) if ok, err := ms.HasProvenWithdrawal(ctx, bridgeId, withdrawalHash); err != nil { return nil, err } else if ok { @@ -339,8 +339,8 @@ func (ms MsgServer) FinalizeTokenWithdrawal(ctx context.Context, req *types.MsgF sdk.NewAttribute(types.AttributeKeyBridgeId, strconv.FormatUint(bridgeId, 10)), sdk.NewAttribute(types.AttributeKeyOutputIndex, strconv.FormatUint(outputIndex, 10)), sdk.NewAttribute(types.AttributeKeyL2Sequence, strconv.FormatUint(l2Sequence, 10)), - sdk.NewAttribute(types.AttributeKeyFrom, req.Sender), - sdk.NewAttribute(types.AttributeKeyTo, req.Receiver), + sdk.NewAttribute(types.AttributeKeyFrom, req.From), + sdk.NewAttribute(types.AttributeKeyTo, req.To), sdk.NewAttribute(types.AttributeKeyL1Denom, denom), sdk.NewAttribute(types.AttributeKeyL2Denom, types.L2Denom(bridgeId, denom)), sdk.NewAttribute(types.AttributeKeyAmount, amount.String()), diff --git a/x/ophost/keeper/msg_server_test.go b/x/ophost/keeper/msg_server_test.go index 3e04326..af684bb 100644 --- a/x/ophost/keeper/msg_server_test.go +++ b/x/ophost/keeper/msg_server_test.go @@ -221,6 +221,7 @@ func Test_FinalizeTokenWithdrawal(t *testing.T) { require.NoError(t, err) _, err = ms.FinalizeTokenWithdrawal(ctx, types.NewMsgFinalizeTokenWithdrawal( + addrsStr[3], // any address can execute this 1, 1, 1, proofs, sender, receiver, @@ -359,6 +360,11 @@ func Test_UpdateChallengers(t *testing.T) { _, err = ms.UpdateChallengers(ctx, msg) require.Error(t, err) + // case 6. remove all challengers + msg = types.NewMsgUpdateChallengers(addrsStr[4], 1, []string{}) + _, err = ms.UpdateChallengers(ctx, msg) + require.Error(t, err) + // invalid signer invalidAddr, err := input.AccountKeeper.AddressCodec().BytesToString(authtypes.NewModuleAddress(types.ModuleName)) require.NoError(t, err) diff --git a/x/ophost/types/output.go b/x/ophost/types/output.go index 2950d6d..d91b168 100644 --- a/x/ophost/types/output.go +++ b/x/ophost/types/output.go @@ -28,7 +28,6 @@ func GenerateOutputRoot(version byte, storageRoot []byte, latestBlockHash []byte } func GenerateWithdrawalHash(bridgeId uint64, l2Sequence uint64, sender string, receiver string, denom string, amount uint64) [32]byte { - const spliter = "|" var withdrawalHash [32]byte seed := []byte{} seed = binary.BigEndian.AppendUint64(seed, bridgeId) @@ -37,15 +36,12 @@ func GenerateWithdrawalHash(bridgeId uint64, l2Sequence uint64, sender string, r // variable length senderDigest := sha3.Sum256([]byte(sender)) seed = append(seed, senderDigest[:]...) // put utf8 encoded address - seed = append(seed, []byte(spliter)...) // variable length receiverDigest := sha3.Sum256([]byte(receiver)) seed = append(seed, receiverDigest[:]...) // put utf8 encoded address - seed = append(seed, []byte(spliter)...) // variable length denomDigest := sha3.Sum256([]byte(denom)) seed = append(seed, denomDigest[:]...) - seed = append(seed, []byte(spliter)...) seed = binary.BigEndian.AppendUint64(seed, amount) // double hash the leaf node diff --git a/x/ophost/types/tx.go b/x/ophost/types/tx.go index 6719458..996c60f 100644 --- a/x/ophost/types/tx.go +++ b/x/ophost/types/tx.go @@ -202,23 +202,25 @@ func (msg MsgInitiateTokenDeposit) Validate(ac address.Codec) error { // NewMsgFinalizeTokenWithdrawal creates a new MsgFinalizeTokenWithdrawal func NewMsgFinalizeTokenWithdrawal( + sender string, bridgeId uint64, outputIndex uint64, sequence uint64, withdrawalProofs [][]byte, - sender string, - receiver string, + from string, + to string, amount sdk.Coin, version []byte, storageRoot []byte, lastBlockHash []byte, ) *MsgFinalizeTokenWithdrawal { return &MsgFinalizeTokenWithdrawal{ + Sender: sender, BridgeId: bridgeId, OutputIndex: outputIndex, WithdrawalProofs: withdrawalProofs, - Sender: sender, - Receiver: receiver, + From: from, + To: to, Sequence: sequence, Amount: amount, Version: version, @@ -229,12 +231,16 @@ func NewMsgFinalizeTokenWithdrawal( // Validate performs basic MsgFinalizeTokenWithdrawal message validation. func (msg MsgFinalizeTokenWithdrawal) Validate(ac address.Codec) error { - // cannot validate sender address as it can be any format of address based on the chain. - if len(msg.Sender) == 0 { - return sdkerrors.ErrInvalidAddress.Wrap("sender address cannot be empty") + if _, err := ac.StringToBytes(msg.Sender); err != nil { + return err + } + + // cannot validate from address as it can be any format of address based on the chain. + if len(msg.From) == 0 { + return sdkerrors.ErrInvalidAddress.Wrap("from address cannot be empty") } - if _, err := ac.StringToBytes(msg.Receiver); err != nil { + if _, err := ac.StringToBytes(msg.To); err != nil { return err } diff --git a/x/ophost/types/tx.pb.go b/x/ophost/types/tx.pb.go index 91a8587..644f786 100644 --- a/x/ophost/types/tx.pb.go +++ b/x/ophost/types/tx.pb.go @@ -427,17 +427,18 @@ var xxx_messageInfo_MsgInitiateTokenDepositResponse proto.InternalMessageInfo // MsgFinalizeTokenWithdrawal is a message finalizing funds withdrawal from L2. type MsgFinalizeTokenWithdrawal struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` BridgeId uint64 `protobuf:"varint,2,opt,name=bridge_id,json=bridgeId,proto3" json:"bridge_id,omitempty" yaml:"bridge_id"` OutputIndex uint64 `protobuf:"varint,3,opt,name=output_index,json=outputIndex,proto3" json:"output_index,omitempty" yaml:"output_index"` WithdrawalProofs [][]byte `protobuf:"bytes,4,rep,name=withdrawal_proofs,json=withdrawalProofs,proto3" json:"withdrawal_proofs,omitempty"` - Sender string `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` - Receiver string `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"` - Sequence uint64 `protobuf:"varint,6,opt,name=sequence,proto3" json:"sequence,omitempty" yaml:"sequence"` - Amount types.Coin `protobuf:"bytes,7,opt,name=amount,proto3" json:"amount" yaml:"amount"` + From string `protobuf:"bytes,5,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` + To string `protobuf:"bytes,6,opt,name=to,proto3" json:"to,omitempty" yaml:"to"` + Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty" yaml:"sequence"` + Amount types.Coin `protobuf:"bytes,8,opt,name=amount,proto3" json:"amount" yaml:"amount"` // version of the output root - Version []byte `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty" yaml:"version"` - StorageRoot []byte `protobuf:"bytes,9,opt,name=storage_root,json=storageRoot,proto3" json:"storage_root,omitempty" yaml:"storage_root"` - LastBlockHash []byte `protobuf:"bytes,10,opt,name=last_block_hash,json=lastBlockHash,proto3" json:"last_block_hash,omitempty" yaml:"last_block_hash"` + Version []byte `protobuf:"bytes,9,opt,name=version,proto3" json:"version,omitempty" yaml:"version"` + StorageRoot []byte `protobuf:"bytes,10,opt,name=storage_root,json=storageRoot,proto3" json:"storage_root,omitempty" yaml:"storage_root"` + LastBlockHash []byte `protobuf:"bytes,11,opt,name=last_block_hash,json=lastBlockHash,proto3" json:"last_block_hash,omitempty" yaml:"last_block_hash"` } func (m *MsgFinalizeTokenWithdrawal) Reset() { *m = MsgFinalizeTokenWithdrawal{} } @@ -1035,110 +1036,111 @@ func init() { func init() { proto.RegisterFile("opinit/ophost/v1/tx.proto", fileDescriptor_d16af6eaf4088d05) } var fileDescriptor_d16af6eaf4088d05 = []byte{ - // 1639 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x6f, 0x1b, 0x45, - 0x14, 0xb7, 0x9d, 0x8f, 0xda, 0xe3, 0x7c, 0x6e, 0xd3, 0xc4, 0xd9, 0xb6, 0xde, 0x64, 0xa8, 0x4a, - 0x92, 0xa6, 0xb6, 0x92, 0xa2, 0x22, 0x59, 0x42, 0xa2, 0x9b, 0x42, 0x49, 0x25, 0xd3, 0x68, 0x01, - 0x21, 0xa0, 0x92, 0xb5, 0xb6, 0x27, 0xeb, 0x55, 0xed, 0x1d, 0xb3, 0x33, 0x4e, 0x1a, 0x24, 0x24, - 0xc4, 0x09, 0x38, 0x21, 0x71, 0xe3, 0x54, 0x71, 0xea, 0xb1, 0x07, 0xfe, 0x88, 0x5c, 0x90, 0x2a, - 0xc4, 0x81, 0x93, 0x05, 0xcd, 0xa1, 0x1c, 0x91, 0x39, 0x72, 0x41, 0x33, 0xb3, 0x3b, 0xfb, 0x61, - 0x3b, 0x0d, 0x55, 0xdb, 0x5c, 0xa2, 0xcc, 0x7b, 0xbf, 0x37, 0xef, 0xbd, 0xdf, 0x7b, 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fe, 0xf1, 0x24, 0x9f, 0xfc, 0xfe, 0x28, 0x9f, 0x78, 0x7c, 0x94, 0x4f, - 0xfc, 0x7e, 0x94, 0x4f, 0x7c, 0xba, 0x6e, 0xd9, 0xb4, 0xd1, 0xa9, 0x16, 0x6a, 0xb8, 0x55, 0xb4, - 0x79, 0x1b, 0x5f, 0x6d, 0x9a, 0x55, 0x52, 0xbc, 0xb3, 0xc3, 0xbf, 0x06, 0xdf, 0xf7, 0xbf, 0x07, - 0xf3, 0x8f, 0xc1, 0xd5, 0x71, 0xfe, 0x35, 0xf8, 0xda, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xac, - 0x23, 0x4f, 0x3f, 0xd7, 0x16, 0x00, 0x00, + // 1649 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x4b, 0x6f, 0x1b, 0x47, + 0x12, 0x26, 0x29, 0x59, 0x16, 0x9b, 0x7a, 0x8e, 0x65, 0x89, 0x1a, 0xdb, 0x1c, 0xa9, 0xed, 0xf5, + 0xca, 0xb2, 0x4c, 0x42, 0xda, 0x5d, 0x2f, 0x40, 0x60, 0x81, 0xf5, 0xc8, 0xfb, 0x90, 0x01, 0xae, + 0x85, 0xd9, 0x5d, 0x2c, 0x36, 0x31, 0x40, 0x0c, 0xc9, 0xd6, 0x70, 0x60, 0x72, 0x9a, 0x99, 0x6e, + 0x4a, 0x56, 0x80, 0x00, 0x41, 0x4e, 0x49, 0x4e, 0x01, 0xf2, 0x07, 0x8c, 0x9c, 0x7c, 0xf4, 0x21, + 0xff, 0x20, 0x17, 0x5d, 0x02, 0x18, 0x41, 0x0e, 0x39, 0x11, 0x89, 0x75, 0x70, 0x8e, 0x01, 0x73, + 0xcc, 0x25, 0xe8, 0xc7, 0xf4, 0x3c, 0x48, 0xca, 0x8a, 0x63, 0x47, 0x17, 0x82, 0x5d, 0xf5, 0x55, + 0x77, 0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xae, 0x90, 0x3a, 0x7a, 0x5e, 0x48, 0x3f, 0x7b, 0x5e, 0x48, 0x7f, 0xfb, + 0xbc, 0x90, 0xfe, 0xe4, 0xb8, 0x90, 0x7a, 0x76, 0x5c, 0x48, 0x7d, 0x73, 0x5c, 0x48, 0xbd, 0xb5, + 0xe1, 0xb8, 0xb4, 0xd9, 0xad, 0x15, 0xeb, 0xb8, 0x5d, 0x72, 0x79, 0x19, 0xdf, 0x6a, 0xd9, 0x35, + 0x52, 0xba, 0xbf, 0xcb, 0x9f, 0x8d, 0x1f, 0x05, 0x0f, 0xc7, 0xfc, 0xd5, 0xb8, 0x36, 0xc1, 0x9f, + 0x8d, 0xff, 0xf0, 0x73, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x12, 0xab, 0x52, 0x00, 0x17, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1988,21 +1990,21 @@ func (m *MsgFinalizeTokenWithdrawal) MarshalToSizedBuffer(dAtA []byte) (int, err copy(dAtA[i:], m.LastBlockHash) i = encodeVarintTx(dAtA, i, uint64(len(m.LastBlockHash))) i-- - dAtA[i] = 0x52 + dAtA[i] = 0x5a } if len(m.StorageRoot) > 0 { i -= len(m.StorageRoot) copy(dAtA[i:], m.StorageRoot) i = encodeVarintTx(dAtA, i, uint64(len(m.StorageRoot))) i-- - dAtA[i] = 0x4a + dAtA[i] = 0x52 } if len(m.Version) > 0 { i -= len(m.Version) copy(dAtA[i:], m.Version) i = encodeVarintTx(dAtA, i, uint64(len(m.Version))) i-- - dAtA[i] = 0x42 + dAtA[i] = 0x4a } { size, err := m.Amount.MarshalToSizedBuffer(dAtA[:i]) @@ -2013,16 +2015,23 @@ func (m *MsgFinalizeTokenWithdrawal) MarshalToSizedBuffer(dAtA []byte) (int, err i = encodeVarintTx(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x3a + dAtA[i] = 0x42 if m.Sequence != 0 { i = encodeVarintTx(dAtA, i, uint64(m.Sequence)) i-- - dAtA[i] = 0x30 + dAtA[i] = 0x38 } - if len(m.Sender) > 0 { - i -= len(m.Sender) - copy(dAtA[i:], m.Sender) - i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) + if len(m.To) > 0 { + i -= len(m.To) + copy(dAtA[i:], m.To) + i = encodeVarintTx(dAtA, i, uint64(len(m.To))) + i-- + dAtA[i] = 0x32 + } + if len(m.From) > 0 { + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintTx(dAtA, i, uint64(len(m.From))) i-- dAtA[i] = 0x2a } @@ -2045,10 +2054,10 @@ func (m *MsgFinalizeTokenWithdrawal) MarshalToSizedBuffer(dAtA []byte) (int, err i-- dAtA[i] = 0x10 } - if len(m.Receiver) > 0 { - i -= len(m.Receiver) - copy(dAtA[i:], m.Receiver) - i = encodeVarintTx(dAtA, i, uint64(len(m.Receiver))) + if len(m.Sender) > 0 { + i -= len(m.Sender) + copy(dAtA[i:], m.Sender) + i = encodeVarintTx(dAtA, i, uint64(len(m.Sender))) i-- dAtA[i] = 0xa } @@ -2690,7 +2699,7 @@ func (m *MsgFinalizeTokenWithdrawal) Size() (n int) { } var l int _ = l - l = len(m.Receiver) + l = len(m.Sender) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -2706,7 +2715,11 @@ func (m *MsgFinalizeTokenWithdrawal) Size() (n int) { n += 1 + l + sovTx(uint64(l)) } } - l = len(m.Sender) + l = len(m.From) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.To) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -4001,7 +4014,7 @@ func (m *MsgFinalizeTokenWithdrawal) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4029,7 +4042,7 @@ func (m *MsgFinalizeTokenWithdrawal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Receiver = string(dAtA[iNdEx:postIndex]) + m.Sender = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -4103,7 +4116,7 @@ func (m *MsgFinalizeTokenWithdrawal) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4131,9 +4144,41 @@ func (m *MsgFinalizeTokenWithdrawal) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Sender = string(dAtA[iNdEx:postIndex]) + m.From = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field To", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.To = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType) } @@ -4152,7 +4197,7 @@ func (m *MsgFinalizeTokenWithdrawal) Unmarshal(dAtA []byte) error { break } } - case 7: + case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } @@ -4185,7 +4230,7 @@ func (m *MsgFinalizeTokenWithdrawal) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 8: + case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) } @@ -4219,7 +4264,7 @@ func (m *MsgFinalizeTokenWithdrawal) Unmarshal(dAtA []byte) error { m.Version = []byte{} } iNdEx = postIndex - case 9: + case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StorageRoot", wireType) } @@ -4253,7 +4298,7 @@ func (m *MsgFinalizeTokenWithdrawal) Unmarshal(dAtA []byte) error { m.StorageRoot = []byte{} } iNdEx = postIndex - case 10: + case 11: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LastBlockHash", wireType) }