Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
fix(cosmos): fix typos (#1386)
Browse files Browse the repository at this point in the history
Small typos

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
- Renamed functions to improve clarity and consistency in the conversion
and banking modules.


<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Devon Bear <[email protected]>
  • Loading branch information
dbadoy and itsdevbear authored Jan 4, 2024
1 parent 32256e8 commit b0f56ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cosmos/lib/conversions.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func SdkCoinsToEvmCoins(sdkCoins sdk.Coins) []libgenerated.CosmosCoin {
return evmCoins
}

// SdkCoinsToEvmCoin converts sdk.Coin into libgenerated.CosmosCoin.
// SdkCoinToEvmCoin converts sdk.Coin into libgenerated.CosmosCoin.
func SdkCoinToEvmCoin(coin sdk.Coin) libgenerated.CosmosCoin {
evmCoin := libgenerated.CosmosCoin{
Amount: coin.Amount.BigInt(),
Expand Down
8 changes: 4 additions & 4 deletions cosmos/precompile/bank/bank.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (c *Contract) GetAllBalances(
return cosmlib.SdkCoinsToEvmCoins(res.Balances), nil
}

// GetSpendableBalanceByDenom implements `getSpendableBalanceByDenom(address,string)` method.
// GetSpendableBalance implements `getSpendableBalanceByDenom(address,string)` method.
func (c *Contract) GetSpendableBalance(
ctx context.Context,
accountAddress common.Address,
Expand All @@ -139,7 +139,7 @@ func (c *Contract) GetSpendableBalance(
return balance.BigInt(), nil
}

// GetSpendableBalances implements `getAllSpendableBalances(address)` method.
// GetAllSpendableBalances implements `getAllSpendableBalances(address)` method.
func (c *Contract) GetAllSpendableBalances(
ctx context.Context,
accountAddress common.Address,
Expand All @@ -159,7 +159,7 @@ func (c *Contract) GetAllSpendableBalances(
return cosmlib.SdkCoinsToEvmCoins(res.Balances), nil
}

// GetSupplyOf implements `getSupply(string)` method.
// GetSupply implements `getSupply(string)` method.
func (c *Contract) GetSupply(
ctx context.Context,
denom string,
Expand All @@ -175,7 +175,7 @@ func (c *Contract) GetSupply(
return supply.BigInt(), nil
}

// GetTotalSupply implements `getAllSupply()` method.
// GetAllSupply implements `getAllSupply()` method.
func (c *Contract) GetAllSupply(
ctx context.Context,
) ([]lib.CosmosCoin, error) {
Expand Down

0 comments on commit b0f56ef

Please sign in to comment.