(hash []byte, name string)
| 1784 | } |
| 1785 | |
| 1786 | func validateHash(hash []byte, name string) error { |
| 1787 | if len(hash) != sha256.Size { |
| 1788 | return errorsmod.Wrapf(moduletypes.ErrInvalidReason, "%s must be %d bytes", name, sha256.Size) |
| 1789 | } |
| 1790 | return nil |
| 1791 | } |
| 1792 | |
| 1793 | func addCoin(a, b sdk.Coin) (sdk.Coin, error) { |
| 1794 | if a.IsNil() || a.IsZero() { |
no outgoing calls
no test coverage detected