wip refactoring basecoin

This commit is contained in:
rigelrozanski
2018-02-17 16:32:30 -05:00
committed by Ethan Buchman
parent f446b94ac7
commit 44536faf08
4 changed files with 117 additions and 122 deletions
+13
View File
@@ -36,6 +36,19 @@ func NewAccountMapper(key sdk.StoreKey, proto sdk.Account) accountMapper {
}
}
// XXX add comment
func NewAccountMapperSealed(key sdk.StoreKey, proto sdk.Account) accountMapper {
cdc := wire.NewCodec()
am := accountMapper{
key: key,
proto: proto,
cdc: cdc,
}
RegisterWireBaseAccount(cdc)
am.Seal()
return am
}
// Returns the go-wire codec. You may need to register interfaces
// and concrete types here, if your app's sdk.Account
// implementation includes interface fields.