Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
add problem scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
lalexgap committed Nov 10, 2023
1 parent 55dccaf commit dbbc4c5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion contracts/SCBridgeWallet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pragma solidity 0.8.19;

// SPDX-License-Identifier: MIT

import "hardhat/console.sol";
import {IAccount} from "contracts/interfaces/IAccount.sol";
import {UserOperation} from "contracts/interfaces/UserOperation.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
Expand Down Expand Up @@ -137,7 +138,14 @@ contract SCBridgeWallet is IAccount {
bytes calldata func
) external {
if (block.chainid == from) {
_challenge(state);
// _challenge(state);
console.log("Before setting contract vars");

// If one of these statements are commented out then the last line gets logged
highestTurnNum = state.turnNum;
challengeExpiry = CHALLENGE_WAIT;

console.log("This should be logged out");
} else {
require(block.chainid == to, "Invalid chainId");

Expand Down

0 comments on commit dbbc4c5

Please sign in to comment.