Skip to content

Commit

Permalink
chore(rpc,proto,app,evm,erc20):fix typos (#2199)
Browse files Browse the repository at this point in the history
  • Loading branch information
bodhi-crypo committed Dec 18, 2023
1 parent 9685748 commit b65edd7
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/ante/cosmos/min_price.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (mpd MinGasPriceDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate
// Fees not provided (or flag "auto"). Then use the base fee to make the check pass
if feeCoins == nil {
return ctx, errorsmod.Wrapf(errortypes.ErrInsufficientFee,
"fee not provided. Please use the --fees flag or the --gas-price flag along with the --gas flag to estimate the fee. The minimun global fee for this tx is: %s",
"fee not provided. Please use the --fees flag or the --gas-price flag along with the --gas flag to estimate the fee. The minimum global fee for this tx is: %s",
requiredFees)
}

Expand Down
6 changes: 3 additions & 3 deletions precompiles/ics20/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ var _ = Describe("Calling ICS20 precompile from another contract", func() {
// finalBalance := s.app.BankKeeper.GetBalance(s.chainA.GetContext(), s.address.Bytes(), s.bondDenom)
// Expect(finalBalance.Amount).To(Equal(initialEvmosBalance.Amount.Sub(fees)))

// check IBC coins balance remains unchaged
// check IBC coins balance remains unchanged
finalOsmoBalance := s.app.BankKeeper.GetBalance(s.chainA.GetContext(), s.address.Bytes(), ibcDenom)
Expect(finalOsmoBalance.Amount).To(Equal(initialOsmoBalance.Amount))
})
Expand Down Expand Up @@ -1408,7 +1408,7 @@ var _ = Describe("Calling ICS20 precompile from another contract", func() {
// finalBalance := s.app.BankKeeper.GetBalance(s.chainA.GetContext(), s.address.Bytes(), s.bondDenom)
// Expect(finalBalance.Amount).To(Equal(initialBalance.Amount.Sub(fees)))

// check Erc20 balance remained unchaged by sent amount
// check Erc20 balance remained unchanged by sent amount
balance := s.app.Erc20Keeper.BalanceOf(
s.chainA.GetContext(),
evmoscontracts.ERC20MinterBurnerDecimalsContract.ABI,
Expand Down Expand Up @@ -1493,7 +1493,7 @@ var _ = Describe("Calling ICS20 precompile from another contract", func() {
})
})

Context("tranfer a contract's funds", func() {
Context("transfer a contract's funds", func() {
var defaultTransferArgs contracts.CallArgs

BeforeEach(func() {
Expand Down
2 changes: 1 addition & 1 deletion precompiles/ics20/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ func (s *PrecompileTestSuite) setupERC20ContractTests(amount *big.Int) common.Ad
}

// makePacket is a helper function to build the sent IBC packet
// to perform an ICS20 tranfer.
// to perform an ICS20 transfer.
// This packet is then used to test the IBC callbacks (Timeout, Ack)
func (s *PrecompileTestSuite) makePacket(
senderAddr,
Expand Down
2 changes: 1 addition & 1 deletion proto/ethermint/evm/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ message AccessListTx {
bytes s = 11;
}

// DynamicFeeTx is the data of EIP-1559 dinamic fee transactions.
// DynamicFeeTx is the data of EIP-1559 dynamic fee transactions.
message DynamicFeeTx {
option (gogoproto.goproto_getters) = false;
option (cosmos_proto.implements_interface) = "TxData";
Expand Down
4 changes: 2 additions & 2 deletions rpc/backend/node_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ func (b *Backend) SetEtherbase(etherbase common.Address) bool {
return false
}

// Fetch minimun gas price to calculate fees using the configuration.
// Fetch minimum gas price to calculate fees using the configuration.
minGasPrices := b.cfg.GetMinGasPrices()
if len(minGasPrices) == 0 || minGasPrices.Empty() {
b.logger.Debug("the minimun fee is not set")
b.logger.Debug("the minimum fee is not set")
return false
}
minGasPriceValue := minGasPrices[0].Amount
Expand Down
8 changes: 4 additions & 4 deletions rpc/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ const (

// Event Format 1 (the format used before PR #1062):
// ```
// ethereum_tx(amount, ethereumTxHash, [txIndex, txGasUsed], txHash, [receipient], ethereumTxFailed)
// ethereum_tx(amount, ethereumTxHash, [txIndex, txGasUsed], txHash, [recipient], ethereumTxFailed)
// tx_log(txLog, txLog, ...)
// ethereum_tx(amount, ethereumTxHash, [txIndex, txGasUsed], txHash, [receipient], ethereumTxFailed)
// ethereum_tx(amount, ethereumTxHash, [txIndex, txGasUsed], txHash, [recipient], ethereumTxFailed)
// tx_log(txLog, txLog, ...)
// ...
// ```
Expand All @@ -38,9 +38,9 @@ const (
// ethereum_tx(ethereumTxHash, txIndex)
// ethereum_tx(ethereumTxHash, txIndex)
// ...
// ethereum_tx(amount, ethereumTxHash, txIndex, txGasUsed, txHash, [receipient], ethereumTxFailed)
// ethereum_tx(amount, ethereumTxHash, txIndex, txGasUsed, txHash, [recipient], ethereumTxFailed)
// tx_log(txLog, txLog, ...)
// ethereum_tx(amount, ethereumTxHash, txIndex, txGasUsed, txHash, [receipient], ethereumTxFailed)
// ethereum_tx(amount, ethereumTxHash, txIndex, txGasUsed, txHash, [recipient], ethereumTxFailed)
// tx_log(txLog, txLog, ...)
// ...
// ```
Expand Down
4 changes: 2 additions & 2 deletions x/erc20/keeper/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ var _ = Describe("ERC20:", Ordered, func() {
Expect(balanceERC20.Int64()).To(Equal(amt.Int64()))
})

It("should send coins to the recevier account", func() {
It("should send coins to the receiver account", func() {
balanceCoin := s.app.BankKeeper.GetBalance(s.ctx, accAddr, pair.Denom)
Expect(balanceCoin).To(Equal(coin))
})
Expand All @@ -306,7 +306,7 @@ var _ = Describe("ERC20:", Ordered, func() {
Expect(balanceERC20.Int64()).To(Equal(int64(0)))
})

It("should burn coins to the recevier account", func() {
It("should burn coins to the receiver account", func() {
balanceCoin := s.app.BankKeeper.GetBalance(s.ctx, accAddr, pair.Denom)
Expect(balanceCoin.IsZero()).To(BeTrue())
})
Expand Down
2 changes: 1 addition & 1 deletion x/evm/types/tx.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b65edd7

Please sign in to comment.