diff --git a/proto/realionetwork/bridge/v1/tx.proto b/proto/realionetwork/bridge/v1/tx.proto index f98a19bd..6fbd0bd3 100644 --- a/proto/realionetwork/bridge/v1/tx.proto +++ b/proto/realionetwork/bridge/v1/tx.proto @@ -28,7 +28,7 @@ message MsgBridgeIn { (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coin" ]; - string reciever = 3; + string receiver = 3; } message MsgBridgeInResponse {} diff --git a/x/bridge/keeper/msg_server_bridge.go b/x/bridge/keeper/msg_server_bridge.go index dd0b5864..5b731584 100644 --- a/x/bridge/keeper/msg_server_bridge.go +++ b/x/bridge/keeper/msg_server_bridge.go @@ -31,7 +31,7 @@ func (ms msgServer) BridgeIn(goCtx context.Context, msg *types.MsgBridgeIn) (*ty } addrCodec := ms.authKeeper.AddressCodec() - accAddr, err := addrCodec.StringToBytes(msg.Reciever) + accAddr, err := addrCodec.StringToBytes(msg.Receiver) if err != nil { return nil, err } diff --git a/x/bridge/keeper/msg_server_bridge_test.go b/x/bridge/keeper/msg_server_bridge_test.go index 0cc19da2..943df171 100644 --- a/x/bridge/keeper/msg_server_bridge_test.go +++ b/x/bridge/keeper/msg_server_bridge_test.go @@ -56,7 +56,7 @@ func (suite *KeeperTestSuite) TestBridgeIn() { if tc.setAuthority { tc.msg.Authority = suite.admin - tc.msg.Reciever = suite.admin + tc.msg.Receiver = suite.admin } addr, err := suite.app.AccountKeeper.AddressCodec().StringToBytes(tc.msg.Authority) diff --git a/x/bridge/types/tx.pb.go b/x/bridge/types/tx.pb.go index a3650f10..548e33ff 100644 --- a/x/bridge/types/tx.pb.go +++ b/x/bridge/types/tx.pb.go @@ -38,7 +38,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type MsgBridgeIn struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Coin types.Coin `protobuf:"bytes,2,opt,name=coin,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"` - Reciever string `protobuf:"bytes,3,opt,name=reciever,proto3" json:"reciever,omitempty"` + Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` } func (m *MsgBridgeIn) Reset() { *m = MsgBridgeIn{} } @@ -88,9 +88,9 @@ func (m *MsgBridgeIn) GetCoin() types.Coin { return types.Coin{} } -func (m *MsgBridgeIn) GetReciever() string { +func (m *MsgBridgeIn) GetReceiver() string { if m != nil { - return m.Reciever + return m.Receiver } return "" } @@ -615,7 +615,7 @@ var fileDescriptor_c403f05ee185653d = []byte{ 0xce, 0x5a, 0xb1, 0xb7, 0x15, 0xb2, 0x59, 0x92, 0xcd, 0x7a, 0x4e, 0x5d, 0xbf, 0x8c, 0x8e, 0x4f, 0xf3, 0xa9, 0x1f, 0x67, 0xf9, 0x47, 0xc4, 0x15, 0x8d, 0x66, 0xd5, 0xaa, 0x51, 0x0f, 0x49, 0xd0, 0xf8, 0x67, 0x89, 0xd7, 0x77, 0x91, 0x38, 0x0c, 0x30, 0x8f, 0x12, 0xec, 0xa8, 0xae, 0x6e, 0xc0, - 0x18, 0xc3, 0x35, 0x17, 0xb7, 0x30, 0xcb, 0x0d, 0x47, 0xe6, 0xea, 0xbc, 0xfe, 0xdf, 0xc7, 0xcb, + 0x18, 0xc3, 0x35, 0xec, 0xb6, 0x30, 0xcb, 0x0d, 0x47, 0xe6, 0xea, 0xbc, 0xfe, 0xdf, 0xc7, 0xcb, 0xa3, 0x85, 0x2b, 0x96, 0xe2, 0x3d, 0x98, 0x6a, 0x03, 0xb7, 0x31, 0x0f, 0xa8, 0xcf, 0x71, 0xf1, 0xb3, 0x06, 0x13, 0xea, 0xfa, 0x66, 0x53, 0xe8, 0x59, 0x48, 0x73, 0x97, 0xf8, 0x98, 0xc9, 0x76, 0xe4, 0xe9, 0x5f, 0xf7, 0xb2, 0x3e, 0x1e, 0xf2, 0x4a, 0xb3, 0x62, 0x16, 0xa6, 0xdb, 0xa1, 0x14, @@ -640,7 +640,7 @@ var fileDescriptor_c403f05ee185653d = []byte{ 0x79, 0xb4, 0xa0, 0x95, 0x2b, 0xc7, 0xe7, 0xa6, 0x76, 0x72, 0x6e, 0x6a, 0xbf, 0xcf, 0x4d, 0xed, 0xd3, 0x85, 0x99, 0x3a, 0xb9, 0x30, 0x53, 0xbf, 0x2e, 0xcc, 0xd4, 0xf6, 0x5a, 0xdb, 0xf2, 0x8b, 0x3d, 0x04, 0xae, 0x35, 0xe4, 0xdf, 0xa5, 0xe4, 0x03, 0x79, 0x90, 0x7c, 0x22, 0xa3, 0x6d, 0x58, - 0x4d, 0x47, 0x93, 0xb6, 0xf6, 0x37, 0x00, 0x00, 0xff, 0xff, 0xaa, 0xc7, 0x03, 0xe8, 0xf1, 0x07, + 0x4d, 0x47, 0x93, 0xb6, 0xf6, 0x37, 0x00, 0x00, 0xff, 0xff, 0xca, 0xa7, 0x55, 0xc9, 0xf1, 0x07, 0x00, 0x00, } @@ -924,10 +924,10 @@ func (m *MsgBridgeIn) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.Reciever) > 0 { - i -= len(m.Reciever) - copy(dAtA[i:], m.Reciever) - i = encodeVarintTx(dAtA, i, uint64(len(m.Reciever))) + if len(m.Receiver) > 0 { + i -= len(m.Receiver) + copy(dAtA[i:], m.Receiver) + i = encodeVarintTx(dAtA, i, uint64(len(m.Receiver))) i-- dAtA[i] = 0x1a } @@ -1313,7 +1313,7 @@ func (m *MsgBridgeIn) Size() (n int) { } l = m.Coin.Size() n += 1 + l + sovTx(uint64(l)) - l = len(m.Reciever) + l = len(m.Receiver) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -1559,7 +1559,7 @@ func (m *MsgBridgeIn) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reciever", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Receiver", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1587,7 +1587,7 @@ func (m *MsgBridgeIn) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Reciever = string(dAtA[iNdEx:postIndex]) + m.Receiver = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex