Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Aug 19, 2024
1 parent eef5251 commit f807314
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion e2e/runner/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (r *E2ERunner) PrintTestReports(tr TestReports) {
if err != nil {
r.Logger.Print("Error rendering test report: %s", err)
}
r.Logger.PrintNoPrefix(table)
r.Logger.PrintNoPrefix(table, "")
}

// NetworkReport is a struct that contains the report for the network used after running e2e tests
Expand Down
4 changes: 2 additions & 2 deletions x/fungible/keeper/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ func (k Keeper) QueryChainIDFromContract(
) (*big.Int, error) {
abi, err := zrc20.ZRC20MetaData.GetAbi()
if err != nil {
return nil, cosmoserrors.Wrapf(types.ErrABIUnpack, err.Error())
return nil, cosmoserrors.Wrap(types.ErrABIUnpack, err.Error())
}
res, err := k.CallEVM(ctx, *abi, types.ModuleAddressEVM, contract, BigIntZero, nil, false, false, "CHAIN_ID")
if err != nil {
Expand Down Expand Up @@ -684,7 +684,7 @@ func (k Keeper) CallEVM(
if ok {
errMes = fmt.Sprintf("%s, reason: %v", errMes, revertErr.ErrorData())
}
return resp, cosmoserrors.Wrapf(err, errMes)
return resp, cosmoserrors.Wrap(err, errMes)
}
return resp, nil
}
Expand Down
6 changes: 3 additions & 3 deletions x/fungible/keeper/gas_price.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (k Keeper) SetGasPrice(ctx sdk.Context, chainid *big.Int, gasPrice *big.Int
gasPrice,
)
if err != nil {
return 0, cosmoserrors.Wrapf(types.ErrContractCall, err.Error())
return 0, cosmoserrors.Wrap(types.ErrContractCall, err.Error())
}
if res.Failed() {
return res.GasUsed, cosmoserrors.Wrapf(types.ErrContractCall, "setGasPrice tx failed")
Expand Down Expand Up @@ -78,7 +78,7 @@ func (k Keeper) SetGasCoin(ctx sdk.Context, chainid *big.Int, address ethcommon.
address,
)
if err != nil {
return cosmoserrors.Wrapf(types.ErrContractCall, err.Error())
return cosmoserrors.Wrap(types.ErrContractCall, err.Error())
}
if res.Failed() {
return cosmoserrors.Wrapf(types.ErrContractCall, "setGasCoinZRC20 tx failed")
Expand Down Expand Up @@ -114,7 +114,7 @@ func (k Keeper) SetGasZetaPool(ctx sdk.Context, chainid *big.Int, pool ethcommon
pool,
)
if err != nil {
return cosmoserrors.Wrapf(types.ErrContractCall, err.Error())
return cosmoserrors.Wrap(types.ErrContractCall, err.Error())
}
if res.Failed() {
return cosmoserrors.Wrapf(types.ErrContractCall, "setGasZetaPool tx failed")
Expand Down

0 comments on commit f807314

Please sign in to comment.