Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/metamask_tx_compatibility -> release/v0.3.45 #657

Merged
merged 18 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
Features:

- Unique identity keys
- Genesis init fix
- CLI to use flags for execution fees proposal
- Slashing module params to gov module properties
- Identity record verification bug fix
- Network properties handling fix
- Signature verification codebase for metamask token send and EIP712 transactions
- Transaction type text updates to use camelcase
- Upgrade genesis script modification to migrate from v0.3.17 to v0.3.45
6 changes: 4 additions & 2 deletions app/ante/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
customgovkeeper "github.com/KiraCore/sekai/x/gov/keeper"
customstakingkeeper "github.com/KiraCore/sekai/x/staking/keeper"
tokenskeeper "github.com/KiraCore/sekai/x/tokens/keeper"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/x/auth/ante"
Expand All @@ -40,6 +41,7 @@ func NewAnteHandler(
sigGasConsumer ante.SignatureVerificationGasConsumer,
signModeHandler signing.SignModeHandler,
txFeeChecker ante.TxFeeChecker,
interfaceRegistry codectypes.InterfaceRegistry,
) sdk.AnteHandler {
return sdk.ChainAnteDecorators(
ante.NewSetUpContextDecorator(), // outermost AnteDecorator. SetUpContext must be called first
Expand All @@ -52,7 +54,7 @@ func NewAnteHandler(
ante.NewConsumeGasForTxSizeDecorator(ak),
// custom fee range validator
NewValidateFeeRangeDecorator(sk, cgk, tk, ak),
ante.NewSetPubKeyDecorator(ak), // SetPubKeyDecorator must be called before all signature verification decorators
NewSetPubKeyDecorator(ak), // SetPubKeyDecorator must be called before all signature verification decorators
ante.NewValidateSigCountDecorator(ak),
ante.NewDeductFeeDecorator(ak, bk, feegrantKeeper, txFeeChecker),
// poor network management decorator
Expand All @@ -61,7 +63,7 @@ func NewAnteHandler(
// custom execution fee consume decorator
NewExecutionFeeRegistrationDecorator(ak, cgk, fk),
ante.NewSigGasConsumeDecorator(ak, sigGasConsumer),
ante.NewSigVerificationDecorator(ak, signModeHandler),
NewSigVerificationDecorator(ak, signModeHandler, interfaceRegistry),
ante.NewIncrementSequenceDecorator(ak),
)
}
Expand Down
Loading
Loading