Linter fixes

This commit is contained in:
Christopher Goes 2018-06-08 03:28:40 +02:00
parent 496d4681c2
commit 946f952de1
No known key found for this signature in database
GPG Key ID: E828D98232D328D3
1 changed files with 4 additions and 3 deletions

View File

@ -41,6 +41,7 @@ func NewIBCPacket(srcAddr sdk.Address, destAddr sdk.Address, coins sdk.Coins,
} }
} }
//nolint
func (p IBCPacket) GetSignBytes() []byte { func (p IBCPacket) GetSignBytes() []byte {
b, err := msgCdc.MarshalJSON(struct { b, err := msgCdc.MarshalJSON(struct {
SrcAddr string SrcAddr string
@ -62,11 +63,11 @@ func (p IBCPacket) GetSignBytes() []byte {
} }
// validator the ibc packey // validator the ibc packey
func (ibcp IBCPacket) ValidateBasic() sdk.Error { func (p IBCPacket) ValidateBasic() sdk.Error {
if ibcp.SrcChain == ibcp.DestChain { if p.SrcChain == p.DestChain {
return ErrIdenticalChains(DefaultCodespace).Trace("") return ErrIdenticalChains(DefaultCodespace).Trace("")
} }
if !ibcp.Coins.IsValid() { if !p.Coins.IsValid() {
return sdk.ErrInvalidCoins("") return sdk.ErrInvalidCoins("")
} }
return nil return nil