Added state tests

This commit is contained in:
obscuren
2014-12-02 00:03:53 +01:00
parent a052357872
commit 2df8ad6307
4 changed files with 86 additions and 7 deletions

View File

@ -69,6 +69,7 @@ func (self *Execution) exec(code, caddr []byte, caller ClosureRef) (ret []byte,
if self.Gas.Cmp(p.Gas) >= 0 {
ret = p.Call(self.input)
self.vm.Printf("NATIVE_FUNC(%x) => %x", naddr, ret)
self.vm.Endl()
}
} else {
// Create a new callable closure