Skip to content

Commit

Permalink
fix code format
Browse files Browse the repository at this point in the history
  • Loading branch information
ws4charlie committed Jun 21, 2024
1 parent 9afb6a9 commit abbe673
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions x/crosschain/keeper/evm_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,12 @@ func ValidateZrc20WithdrawEvent(event *zrc20.ZRC20Withdrawal, chainID int64) err

if chains.IsBitcoinChain(chainID) {
if event.Value.Cmp(big.NewInt(constant.BTCWithdrawalDustAmount)) < 0 {
return errorsmod.Wrapf(types.ErrInvalidWithdrawalAmount, "withdraw amount %s is less than minimum amount %d",
event.Value.String(), constant.BTCWithdrawalDustAmount)
return errorsmod.Wrapf(
types.ErrInvalidWithdrawalAmount,
"withdraw amount %s is less than minimum amount %d",
event.Value.String(),
constant.BTCWithdrawalDustAmount,
)
}
addr, err := chains.DecodeBtcAddress(string(event.To), chainID)
if err != nil {
Expand Down

0 comments on commit abbe673

Please sign in to comment.