Skip to content

Commit

Permalink
Handle Transfer Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Aug 26, 2023
1 parent 1a527fa commit 93dc8f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/decorators/dedcuct_fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ func HandleZeroFees(keeper bankkeeper.Keeper, ctx sdk.Context, deductFeesFromAcc
ctx.Logger().Error("HandleZeroFees", "Payment", payment)

// keeper.SendCoinsFromModuleToAccount(ctx, "feeprepay", deductFeesFromAcc.GetAddress(), payment)
keeper.SendCoinsFromModuleToModule(ctx, feeprepaytypes.ModuleName, types.FeeCollectorName, payment)
err := keeper.SendCoinsFromModuleToModule(ctx, feeprepaytypes.ModuleName, types.FeeCollectorName, payment)

Check failure on line 143 in app/decorators/dedcuct_fee.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofumpt`-ed (gofumpt)
// Handle error
if err != nil {
ctx.Logger().Error("HandleZeroFees", "Error transfering funds from module to module", err)

Check failure on line 146 in app/decorators/dedcuct_fee.go

View workflow job for this annotation

GitHub Actions / lint

`transfering` is a misspelling of `transferring` (misspell)
}

ctx.Logger().Error("HandleZeroFees", "Ending", true)
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/test_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ from_scratch () {
BINARY genesis add-genesis-account $KEY 10000000ujuno,1000utest --keyring-backend $KEYRING
BINARY genesis add-genesis-account $KEY2 1000000ujuno,1000utest --keyring-backend $KEYRING
BINARY genesis add-genesis-account juno1see0htr47uapjvcvh0hu6385rp8lw3emu85lh5 100000000000ujuno --keyring-backend $KEYRING
BINARY genesis add-genesis-account juno1xgj5vkjknnvwu3je3usm2fasvr6a9ust9q7gxm 100000000000ujuno --keyring-backend $KEYRING # feeprepay
# BINARY genesis add-genesis-account juno1xgj5vkjknnvwu3je3usm2fasvr6a9ust9q7gxm 100000000000ujuno --keyring-backend $KEYRING # feeprepay

BINARY genesis gentx $KEY 1000000ujuno --keyring-backend $KEYRING --chain-id $CHAIN_ID

Expand Down

0 comments on commit 93dc8f4

Please sign in to comment.