Linter fixes
This commit is contained in:
parent
496d4681c2
commit
946f952de1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue