(no commit message provided)

This commit is contained in:
Prad Nukala
2024-07-05 22:20:13 -04:00
committed by Prad Nukala (aider)
commit 5fd43dfd6b
457 changed files with 115535 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
package decorators
import (
sdk "github.com/cosmos/cosmos-sdk/types"
protov2 "google.golang.org/protobuf/proto"
)
// Define an empty ante handle
var (
EmptyAnte = func(ctx sdk.Context, tx sdk.Tx, simulate bool) (sdk.Context, error) {
return ctx, nil
}
)
type MockTx struct {
msgs []sdk.Msg
}
func NewMockTx(msgs ...sdk.Msg) MockTx {
return MockTx{
msgs: msgs,
}
}
func (tx MockTx) GetMsgs() []sdk.Msg {
return tx.msgs
}
func (tx MockTx) GetMsgsV2() ([]protov2.Message, error) {
return nil, nil
}
func (tx MockTx) ValidateBasic() error {
return nil
}