Add post packet to cli and test... bug

This commit is contained in:
Ethan Frey
2017-07-27 16:41:13 -04:00
parent b7abee64f0
commit d0920ac1cf
8 changed files with 129 additions and 60 deletions
+3 -1
View File
@@ -21,8 +21,10 @@ type secureContext struct {
// NewContext - create a new secureContext
func NewContext(chain string, height uint64, logger log.Logger) basecoin.Context {
mock := MockContext(chain, height).(naiveContext)
mock.Logger = logger
return secureContext{
naiveContext: MockContext(chain, height).(naiveContext),
naiveContext: mock,
}
}