chore: fix some typos in comments (#1881)

Signed-off-by: careworry <worrycare@outlook.com>
This commit is contained in:
careworry 2024-04-18 21:56:52 +08:00 committed by GitHub
parent 1b6f1468ec
commit 346f4be683
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -84,7 +84,7 @@ func TestNewWeightedAddresses(t *testing.T) {
}, },
} }
// Run NewWeightedAdresses tests // Run NewWeightedAddresses tests
for _, tc := range tests { for _, tc := range tests {
// Attempt to instantiate new WeightedAddresses // Attempt to instantiate new WeightedAddresses
weightedAddresses, err := NewWeightedAddresses(tc.addresses, tc.weights) weightedAddresses, err := NewWeightedAddresses(tc.addresses, tc.weights)

View File

@ -132,7 +132,7 @@ func (suite *ABCITestSuite) TestBeginBlocker_UpdateExpiredAtomicSwaps() {
// Run the second begin blocker // Run the second begin blocker
bep3.BeginBlocker(tc.secondCtx, suite.keeper) bep3.BeginBlocker(tc.secondCtx, suite.keeper)
// Check each swap's availibility and status // Check each swap's availability and status
for _, swapID := range suite.swapIDs { for _, swapID := range suite.swapIDs {
storedSwap, found := suite.keeper.GetAtomicSwap(tc.secondCtx, swapID) storedSwap, found := suite.keeper.GetAtomicSwap(tc.secondCtx, swapID)
if tc.expectInStorage { if tc.expectInStorage {

View File

@ -67,7 +67,7 @@ func (a AtomicSwap) Validate() error {
if a.Recipient.Empty() { if a.Recipient.Empty() {
return errorsmod.Wrap(sdkerrors.ErrInvalidAddress, "recipient cannot be empty") return errorsmod.Wrap(sdkerrors.ErrInvalidAddress, "recipient cannot be empty")
} }
// NOTE: These adresses may not have a bech32 prefix. // NOTE: These addresses may not have a bech32 prefix.
if strings.TrimSpace(a.SenderOtherChain) == "" { if strings.TrimSpace(a.SenderOtherChain) == "" {
return errorsmod.Wrap(sdkerrors.ErrInvalidAddress, "sender other chain cannot be blank") return errorsmod.Wrap(sdkerrors.ErrInvalidAddress, "sender other chain cannot be blank")
} }

View File

@ -30,7 +30,7 @@ var _ evmtypes.BankKeeper = EvmBankKeeper{}
// x/evm consumes gas and send coins by minting and burning akava coins in its module // x/evm consumes gas and send coins by minting and burning akava coins in its module
// account and then sending the funds to the target account. // account and then sending the funds to the target account.
// This keeper uses both the ukava coin and a separate akava balance to manage the // This keeper uses both the ukava coin and a separate akava balance to manage the
// extra percision needed by the evm. // extra precision needed by the evm.
type EvmBankKeeper struct { type EvmBankKeeper struct {
akavaKeeper Keeper akavaKeeper Keeper
bk types.BankKeeper bk types.BankKeeper

View File

@ -46,7 +46,7 @@ When converting assets from the Cosmos co-chain to the EVM, the initiator is a `
`sdk.Coin`s native to the Cosmos co-chain can be converted to an ERC-20 representing the coin in the EVM. This works by transferring the coin from the initiator to `x/evmutil`'s module account and then minting an ERC-20 token to the receiver. Converting back, the initiator's ERC-20 representation of the coin is burned and the original Cosmos-native asset is transferred to the receiver. `sdk.Coin`s native to the Cosmos co-chain can be converted to an ERC-20 representing the coin in the EVM. This works by transferring the coin from the initiator to `x/evmutil`'s module account and then minting an ERC-20 token to the receiver. Converting back, the initiator's ERC-20 representation of the coin is burned and the original Cosmos-native asset is transferred to the receiver.
Cosmos-native asset converstion is done through the use of the `MsgConvertCosmosCoinToERC20` & `MsgConvertCosmosCoinFromERC20` messages (see **[Messages](03_messages.md)**). Cosmos-native asset conversion is done through the use of the `MsgConvertCosmosCoinToERC20` & `MsgConvertCosmosCoinFromERC20` messages (see **[Messages](03_messages.md)**).
Only Cosmos co-chain denominations that are in the `AllowedCosmosDenoms` param (see **[Params](05_params.md)**) can be converted via these messages. Only Cosmos co-chain denominations that are in the `AllowedCosmosDenoms` param (see **[Params](05_params.md)**) can be converted via these messages.