@@ -24,7 +24,7 @@ import (
24
24
type Keeper struct {
25
25
appmodulev2.Environment
26
26
27
- ak types.AccountKeeper
27
+ ak types.AuthKeeper
28
28
authority []byte
29
29
addressCodec address.Codec
30
30
schema collections.Schema
@@ -33,7 +33,7 @@ type Keeper struct {
33
33
supply collections.Map [string , math.Int ]
34
34
}
35
35
36
- func NewKeeper (authority []byte , addressCodec address.Codec , env appmodulev2.Environment , cdc codec.BinaryCodec , ak types.AccountKeeper ) * Keeper {
36
+ func NewKeeper (authority []byte , addressCodec address.Codec , env appmodulev2.Environment , cdc codec.BinaryCodec , ak types.AuthKeeper ) * Keeper {
37
37
sb := collections .NewSchemaBuilder (env .KVStoreService )
38
38
39
39
k := & Keeper {
@@ -58,7 +58,7 @@ func NewKeeper(authority []byte, addressCodec address.Codec, env appmodulev2.Env
58
58
// MintCoins creates new coins from thin air and adds it to the module account.
59
59
// An error is returned if the module account does not exist or is unauthorized.
60
60
func (k Keeper ) MintCoins (ctx context.Context , moduleName string , amounts sdk.Coins ) error {
61
-
61
+
62
62
// TODO: Mint restriction
63
63
acc := k .ak .GetModuleAccount (ctx , moduleName )
64
64
if acc == nil {
@@ -129,7 +129,7 @@ func (k Keeper) SendCoins(ctx context.Context, from, to string, amt sdk.Coins) e
129
129
return fmt .Errorf ("%s is not an address or module name" , to )
130
130
}
131
131
}
132
-
132
+
133
133
// TODO: Send restriction
134
134
135
135
err = k .subUnlockedCoins (ctx , fromAddr , amt )
0 commit comments