Commit 7cdddef81c118db3b188949697b28350cbe2e343
report errors
wanderer committed on 1/27/2017, 4:35:50 PMParent: f51dc0dfc7b37b0d369c1f9a552d6ab0e1129055
Files changed
tests/interfaceRunner.js | changed |
tests/interfaceRunner.js | ||
---|---|---|
@@ -60,26 +60,25 @@ | ||
60 | 60 | value: fakeBlockChain |
61 | 61 | })) |
62 | 62 | |
63 | 63 | const message = new Message() |
64 | - // message.from = new Address() | |
65 | 64 | message.to = ['accounts', envData.address, 'code'] |
66 | 65 | message.origin = new Address(envData.origin) |
67 | 66 | message.data = new Buffer(envData.callData.slice(2), 'hex') |
68 | 67 | message.value = new U256(envData.callValue) |
69 | 68 | message.gas = 1000000 |
70 | 69 | |
71 | 70 | const callerState = await rootVertex.get(['accounts', envData.caller, 'code']) |
72 | 71 | const caller = new Kernel({state: callerState}) |
73 | - // try { | |
72 | + try { | |
74 | 73 | await caller.send(common.ROOT, message) |
75 | - // } catch (e) { | |
76 | - // t.fail('Exception: ' + e) | |
77 | - // console.error('FAIL') | |
78 | - // console.error(e) | |
79 | - // } finally { | |
74 | + } catch (e) { | |
75 | + t.fail('Exception: ' + e) | |
76 | + console.error('FAIL') | |
77 | + console.error(e) | |
78 | + } finally { | |
80 | 79 | t.pass(testName) |
81 | - // } | |
80 | + } | |
82 | 81 | t.end() |
83 | 82 | }) |
84 | 83 | } |
85 | 84 | } |
Built with git-ssb-web