diff --git a/util/liblog/liblog.go b/util/liblog/liblog.go index a3402182..379f4fbd 100644 --- a/util/liblog/liblog.go +++ b/util/liblog/liblog.go @@ -1,7 +1,7 @@ package liblog import ( - "github.com/cometbft/cometbft/libs/log" + "cosmossdk.io/log" ) type Logr interface { @@ -13,6 +13,9 @@ type Logr interface { func FromSDKLogger(l log.Logger) Logr { return &lgwr{l: l} } +func (l *lgwr) Impl() interface{} { + return l +} type lgwr struct { l log.Logger diff --git a/util/liblog/liblog_test.go b/util/liblog/liblog_test.go index 7ed7c1c9..0d8bc849 100644 --- a/util/liblog/liblog_test.go +++ b/util/liblog/liblog_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/cometbft/cometbft/libs/log" + "cosmossdk.io/log" "github.com/palomachain/paloma/util/liblog" "github.com/stretchr/testify/assert" ) @@ -14,6 +14,10 @@ type mock struct { args []interface{} } +func (m *mock) Impl() interface{} { + return m +} + func (m *mock) Debug(msg string, keyvals ...interface{}) { m.invocations = append(m.invocations, "Debug") m.args = append(m.args, msg) diff --git a/x/paloma/ante.go b/x/paloma/ante.go index 2bb7e846..00021fd0 100644 --- a/x/paloma/ante.go +++ b/x/paloma/ante.go @@ -78,7 +78,7 @@ func NewVerifyAuthorisedSignatureDecorator(fk types.FeegrantKeeper) VerifyAuthor // AnteHandle verifies that the message is signed by at least one signature that has // active fee grant from the creator address, IF the message contains metadata. func (d VerifyAuthorisedSignatureDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) { - if simulate || ctx.IsCheckTx() { + if simulate { return next(ctx, tx, simulate) }