refactor(x/**): rewrite ante handlers as tx validators (#20488)
Co-authored-by: Likhita Polavarapu <78951027+likhita-809@users.noreply.github.com>
This commit is contained in:
co-authored by
Likhita Polavarapu
parent
d1aab15790
commit
2a5ff384fa
@@ -7,6 +7,7 @@ import (
|
||||
"google.golang.org/protobuf/reflect/protoreflect"
|
||||
|
||||
bankv1beta1 "cosmossdk.io/api/cosmos/bank/v1beta1"
|
||||
"cosmossdk.io/core/transaction"
|
||||
errorsmod "cosmossdk.io/errors"
|
||||
"cosmossdk.io/x/auth/signing"
|
||||
|
||||
@@ -95,6 +96,22 @@ func NewTx(key, value string, accAddress sdk.AccAddress) *KVStoreTx {
|
||||
}
|
||||
}
|
||||
|
||||
func (msg *KVStoreTx) Hash() [32]byte {
|
||||
return [32]byte{}
|
||||
}
|
||||
|
||||
func (msg *KVStoreTx) GetGasLimit() (uint64, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func (msg *KVStoreTx) GetMessages() ([]transaction.Msg, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (msg *KVStoreTx) GetSenders() ([][]byte, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (msg *KVStoreTx) Type() string {
|
||||
return "kvstore_tx"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user