mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 12:07:27 +00:00 
			
		
		
		
	chore: fix some typos in comments (#1881)
Signed-off-by: careworry <worrycare@outlook.com>
This commit is contained in:
		
							parent
							
								
									1b6f1468ec
								
							
						
					
					
						commit
						346f4be683
					
				@ -84,7 +84,7 @@ func TestNewWeightedAddresses(t *testing.T) {
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Run NewWeightedAdresses tests
 | 
			
		||||
	// Run NewWeightedAddresses tests
 | 
			
		||||
	for _, tc := range tests {
 | 
			
		||||
		// Attempt to instantiate new WeightedAddresses
 | 
			
		||||
		weightedAddresses, err := NewWeightedAddresses(tc.addresses, tc.weights)
 | 
			
		||||
 | 
			
		||||
@ -132,7 +132,7 @@ func (suite *ABCITestSuite) TestBeginBlocker_UpdateExpiredAtomicSwaps() {
 | 
			
		||||
			// Run the second begin blocker
 | 
			
		||||
			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 {
 | 
			
		||||
				storedSwap, found := suite.keeper.GetAtomicSwap(tc.secondCtx, swapID)
 | 
			
		||||
				if tc.expectInStorage {
 | 
			
		||||
 | 
			
		||||
@ -67,7 +67,7 @@ func (a AtomicSwap) Validate() error {
 | 
			
		||||
	if a.Recipient.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) == "" {
 | 
			
		||||
		return errorsmod.Wrap(sdkerrors.ErrInvalidAddress, "sender other chain cannot be blank")
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
@ -30,7 +30,7 @@ var _ evmtypes.BankKeeper = EvmBankKeeper{}
 | 
			
		||||
// 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.
 | 
			
		||||
// 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 {
 | 
			
		||||
	akavaKeeper Keeper
 | 
			
		||||
	bk          types.BankKeeper
 | 
			
		||||
 | 
			
		||||
@ -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.
 | 
			
		||||
 | 
			
		||||
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.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user