Commit b47ce606 authored by liuyuhang's avatar liuyuhang

modify some dapp set config

parent 26d2f8bd
...@@ -42,6 +42,7 @@ func getRealExecName(cfg *types.Chain33Config, paraName string) string { ...@@ -42,6 +42,7 @@ func getRealExecName(cfg *types.Chain33Config, paraName string) string {
func NewType(cfg *types.Chain33Config) *GameType { func NewType(cfg *types.Chain33Config) *GameType {
c := &GameType{} c := &GameType{}
c.SetChild(c) c.SetChild(c)
c.SetConfig(cfg)
return c return c
} }
......
...@@ -34,6 +34,7 @@ type PokerBullType struct { ...@@ -34,6 +34,7 @@ type PokerBullType struct {
func NewType(cfg *types.Chain33Config) *PokerBullType { func NewType(cfg *types.Chain33Config) *PokerBullType {
c := &PokerBullType{} c := &PokerBullType{}
c.SetChild(c) c.SetChild(c)
c.SetConfig(cfg)
return c return c
} }
......
...@@ -74,6 +74,7 @@ type tradeType struct { ...@@ -74,6 +74,7 @@ type tradeType struct {
func NewType(cfg *types.Chain33Config) *tradeType { func NewType(cfg *types.Chain33Config) *tradeType {
c := &tradeType{} c := &tradeType{}
c.SetChild(c) c.SetChild(c)
c.SetConfig(cfg)
return c return c
} }
......
...@@ -34,6 +34,7 @@ type ValNodeType struct { ...@@ -34,6 +34,7 @@ type ValNodeType struct {
func NewType(cfg *types.Chain33Config) *ValNodeType { func NewType(cfg *types.Chain33Config) *ValNodeType {
c := &ValNodeType{} c := &ValNodeType{}
c.SetChild(c) c.SetChild(c)
c.SetConfig(cfg)
return c return c
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment