Skip to content

Commit

Permalink
adjust instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
testinginprod committed Oct 24, 2024
1 parent 1d76d91 commit d9972c0
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion x/accounts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,35 @@ For chains where bundling is incompatible with existing security measures or ope
1. Locate your `app.go` file
2. Add the following method call:

**Non depinject**:

```go
accountsKeeper.DisableBundling()
// add keepers
func NewApp(...) {
...
accountsKeeper, err := accounts.NewKeeper(...)
if err != nil {
panic(err)
}
accountsKeeper.DisableTxBundling() <-- // add this line
app.AccountsKeeper = accountsKeeper
...
}
```

**Depinject**:

```go
var appModules map[string]appmodule.AppModule
if err := depinject.Inject(appConfig,
&appBuilder,
...
&app.AuthKeeper,
&app.AccountsKeeper,
...
); err != nil {
panic(err)
}

app.AccountsKeeper.DisableBundling() // <- add this line
```

0 comments on commit d9972c0

Please sign in to comment.