Skip to content

Commit

Permalink
Enable trace for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolacy committed Nov 18, 2024
1 parent 16d732a commit a1c34b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions demo/app/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func setup(t testing.TB, chainID string, withGenesis bool, invCheckPeriod uint,

appOptions := make(simsutils.AppOptionsMap, 0)
appOptions[flags.FlagHome] = nodeHome // ensure unique folder
appOptions[server.FlagTrace] = true
appOptions[server.FlagInvCheckPeriod] = invCheckPeriod
app := NewConsumerApp(log.NewNopLogger(), db, nil, true, appOptions, opts, bam.SetChainID(chainID), bam.SetSnapshot(snapshotStore, snapshottypes.SnapshotOptions{KeepRecent: 2}))
if withGenesis {
Expand Down
3 changes: 2 additions & 1 deletion x/babylon/keeper/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"encoding/hex"
"encoding/json"
"fmt"

errorsmod "cosmossdk.io/errors"
"github.com/babylonlabs-io/babylon-sdk/x/babylon/contract"
Expand Down Expand Up @@ -113,6 +114,6 @@ func (k Keeper) doSudoCall(ctx sdk.Context, contractAddr sdk.AccAddress, msg con
return errorsmod.Wrap(err, "marshal sudo msg")
}
resp, err := k.wasm.Sudo(ctx, contractAddr, bz)
k.Logger(ctx).Debug("response of sudo call %v to contract %s: %v", bz, contractAddr.String(), resp)
k.Logger(ctx).Debug(fmt.Sprintf("response of sudo call %v to contract %s: %v", bz, contractAddr.String(), resp))
return err
}

0 comments on commit a1c34b8

Please sign in to comment.