Commit 87c8b3fd authored by George Hotz's avatar George Hotz

fix js logs

parent 64807a35
...@@ -17,7 +17,11 @@ describe("MIPS contract", function () { ...@@ -17,7 +17,11 @@ describe("MIPS contract", function () {
for (let i = 0; i < 10; i++) { for (let i = 0; i < 10; i++) {
ret = await m.Step(root) ret = await m.Step(root)
const receipt = await ret.wait() const receipt = await ret.wait()
root = receipt.logs[0].data for (l of receipt.logs) {
if (l.topics[0] == "0x86b89b5c9818dbbf520dd979a5f250d357508fe11b9511d4a43fd9bc6aa1be70") {
root = l.data
}
}
console.log(i, root) console.log(i, root)
} }
}); });
......
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