Skip to content

Commit

Permalink
fix conflict after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-nguy committed Sep 8, 2021
1 parent 2fac7f8 commit 97d439e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion x/cronos/keeper/ibc.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (k Keeper) IbcTransferCoins(ctx sdk.Context, from, destination string, coin
amountToBurn := c.Amount.Sub(amount8decRem)
if amountToBurn.IsZero() {
// Amount too small
break
continue
}
coins := sdk.NewCoins(sdk.NewCoin(evmParams.EvmDenom, amountToBurn))

Expand Down
3 changes: 1 addition & 2 deletions x/cronos/keeper/ibc_hooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
keepertest "github.com/crypto-org-chain/cronos/x/cronos/keeper/mock"
"github.com/crypto-org-chain/cronos/x/cronos/types"
"github.com/tharsis/ethermint/crypto/ethsecp256k1"
evmtypes "github.com/tharsis/ethermint/x/evm/types"
)

func (suite *KeeperTestSuite) TestOnRecvTransfer() {
Expand Down Expand Up @@ -74,9 +73,9 @@ func (suite *KeeperTestSuite) TestOnRecvTransfer() {
suite.app.GetKey(types.StoreKey),
suite.app.GetKey(types.MemStoreKey),
suite.app.GetSubspace(types.ModuleName),
suite.app.GetSubspace(evmtypes.ModuleName),
suite.app.BankKeeper,
keepertest.IbcKeeperMock{},
suite.app.EvmKeeper,
)
suite.app.CronosKeeper = cronosKeeper

Expand Down
3 changes: 1 addition & 2 deletions x/cronos/keeper/ibc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
keepertest "github.com/crypto-org-chain/cronos/x/cronos/keeper/mock"
"github.com/crypto-org-chain/cronos/x/cronos/types"
"github.com/tharsis/ethermint/crypto/ethsecp256k1"
evmtypes "github.com/tharsis/ethermint/x/evm/types"
)

func (suite *KeeperTestSuite) TestConvertVouchersToEvmCoins() {
Expand Down Expand Up @@ -195,9 +194,9 @@ func (suite *KeeperTestSuite) TestIbcTransferCoins() {
suite.app.GetKey(types.StoreKey),
suite.app.GetKey(types.MemStoreKey),
suite.app.GetSubspace(types.ModuleName),
suite.app.GetSubspace(evmtypes.ModuleName),
suite.app.BankKeeper,
keepertest.IbcKeeperMock{},
suite.app.EvmKeeper,
)
suite.app.CronosKeeper = cronosKeeper

Expand Down
3 changes: 1 addition & 2 deletions x/cronos/keeper/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
cronosmodulekeeper "github.com/crypto-org-chain/cronos/x/cronos/keeper"
keepertest "github.com/crypto-org-chain/cronos/x/cronos/keeper/mock"
"github.com/crypto-org-chain/cronos/x/cronos/types"
evmtypes "github.com/tharsis/ethermint/x/evm/types"
)

func (suite *KeeperTestSuite) TestGetSourceChannelID() {
Expand Down Expand Up @@ -42,9 +41,9 @@ func (suite *KeeperTestSuite) TestGetSourceChannelID() {
suite.app.GetKey(types.StoreKey),
suite.app.GetKey(types.MemStoreKey),
suite.app.GetSubspace(types.ModuleName),
suite.app.GetSubspace(evmtypes.ModuleName),
suite.app.BankKeeper,
keepertest.IbcKeeperMock{},
suite.app.EvmKeeper,
)
suite.app.CronosKeeper = cronosKeeper

Expand Down

0 comments on commit 97d439e

Please sign in to comment.