Commit 4e9f4728 authored by Mark Tyneway's avatar Mark Tyneway Committed by norswap

contracts: remove hardhat/console

parent a22c36eb
...@@ -3,7 +3,6 @@ pragma solidity ^0.7.3; ...@@ -3,7 +3,6 @@ pragma solidity ^0.7.3;
pragma experimental ABIEncoderV2; pragma experimental ABIEncoderV2;
import "./lib/Lib_RLPReader.sol"; import "./lib/Lib_RLPReader.sol";
import "hardhat/console.sol";
interface IMIPS { interface IMIPS {
function Step(bytes32 stateHash) external returns (bytes32); function Step(bytes32 stateHash) external returns (bytes32);
...@@ -209,8 +208,6 @@ contract Challenge { ...@@ -209,8 +208,6 @@ contract Challenge {
require(!isSearching(challengeId), "binary search not finished"); require(!isSearching(challengeId), "binary search not finished");
bytes32 stepState = mips.Step(c.assertedState[c.L]); bytes32 stepState = mips.Step(c.assertedState[c.L]);
console.logBytes32(stepState);
console.logBytes32(c.assertedState[c.R]);
require(stepState == c.assertedState[c.R], "wrong asserted state for challenger"); require(stepState == c.assertedState[c.R], "wrong asserted state for challenger");
// pay out bounty!! // pay out bounty!!
...@@ -233,8 +230,6 @@ contract Challenge { ...@@ -233,8 +230,6 @@ contract Challenge {
return; return;
} }
console.logBytes32(stepState);
console.logBytes32(c.defendedState[c.R]);
require(stepState == c.defendedState[c.R], "wrong asserted state for defender"); require(stepState == c.defendedState[c.R], "wrong asserted state for defender");
// consider the challenger mocked // consider the challenger mocked
......
...@@ -6,8 +6,6 @@ import { Lib_BytesUtils } from "./Lib_BytesUtils.sol"; ...@@ -6,8 +6,6 @@ import { Lib_BytesUtils } from "./Lib_BytesUtils.sol";
import { Lib_RLPReader } from "./Lib_RLPReader.sol"; import { Lib_RLPReader } from "./Lib_RLPReader.sol";
import { Lib_RLPWriter } from "./Lib_RLPWriter.sol"; import { Lib_RLPWriter } from "./Lib_RLPWriter.sol";
import "hardhat/console.sol";
/** /**
* @title Lib_MerkleTrie * @title Lib_MerkleTrie
*/ */
...@@ -682,12 +680,10 @@ library Lib_MerkleTrie { ...@@ -682,12 +680,10 @@ library Lib_MerkleTrie {
bytes memory _hash bytes memory _hash
) )
{ {
//console.logBytes(_encoded);
if (_encoded.length < 32) { if (_encoded.length < 32) {
return _encoded; return _encoded;
} else { } else {
bytes32 encodedHash = keccak256(_encoded); bytes32 encodedHash = keccak256(_encoded);
//console.logBytes32(encodedHash);
GetTrie()[encodedHash] = _encoded; GetTrie()[encodedHash] = _encoded;
return abi.encodePacked(encodedHash); return abi.encodePacked(encodedHash);
} }
......
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