docs: fix typos in docs/architecture (#18612)

This commit is contained in:
nomand 2023-12-03 02:26:07 +08:00 committed by GitHub
parent f23d5c4d22
commit 03fe363055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ type ModuleManager struct {
}
func (mm ModuleManager) GetAnteHandler() AnteHandler {
retun Chainer(mm.AnteHandlerOrder)
return Chainer(mm.AnteHandlerOrder)
}
```

View File

@ -207,7 +207,7 @@ For backward compatibility with the existing `authtypes.NewModuleAddress`, we ad
```go
func Module(moduleName string, derivationKeys ...[]byte) []byte{
if len(derivationKeys) == 0 {
return authtypes.NewModuleAddress(modulenName) // legacy case
return authtypes.NewModuleAddress(moduleName) // legacy case
}
submoduleAddress := Hash("module", []byte(moduleName) + 0 + key)
return fold((a, k) => Derive(a, k), subsubKeys, submoduleAddress)