Skip to content

Commit

Permalink
fix: audit (#91)
Browse files Browse the repository at this point in the history
* execute hook on multi-send

* do contract validation before setting before send hook

* remove MsgForceTransfer and burn_from_address from the MsgBurn

* fix lint

* add basic validation ante to opinit ante
  • Loading branch information
beer-1 authored Jan 31, 2025
1 parent 01a6543 commit 2a2867c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/ante/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {

func CreateAnteHandlerForOPinit(ak ante.AccountKeeper, signModeHandler *txsigning.HandlerMap) sdk.AnteHandler {
return sdk.ChainAnteDecorators(
ante.NewValidateBasicDecorator(),
ante.NewSetPubKeyDecorator(ak),
ante.NewValidateSigCountDecorator(ak),
ante.NewSigGasConsumeDecorator(ak, ante.DefaultSigVerificationGasConsumer),
Expand Down

0 comments on commit 2a2867c

Please sign in to comment.