Skip to content

Commit

Permalink
Update precompiles/types/coin.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tanmay <[email protected]>
  • Loading branch information
Francisco de Borja Aranda Castillejo and kingpinXD authored Oct 25, 2024
1 parent 884598c commit 7243c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion precompiles/types/coin.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func CreateCoinSet(tokenDenom string, amount *big.Int) (sdk.Coins, error) {

// A sdk.Coins (type []sdk.Coin) has to be created because it's the type expected by MintCoins
// and SendCoinsFromModuleToAccount.
// But sdk.Coins will only contain one coin, always.
// But coinSet will only contain one coin, always.
coinSet := sdk.NewCoins(coin)
if !coinSet.IsValid() || coinSet.Empty() || coinSet.IsAnyNil() || coinSet == nil {
return nil, &ErrInvalidCoin{

Check warning on line 34 in precompiles/types/coin.go

View check run for this annotation

Codecov / codecov/patch

precompiles/types/coin.go#L34

Added line #L34 was not covered by tests
Expand Down

0 comments on commit 7243c80

Please sign in to comment.